Solved

Error when trying to export database  - characterset not recognized

Posted on 2009-07-05
6
1,790 Views
Last Modified: 2013-12-19
Hello,
My problem as follows:
i recently changed character set from ARABIC_BAHRAIN.AR8MSWIN1252 to ARABIC_BAHRAIN.AR8MSWIN1252,, and everything went fine according to have arabic enabled on the db. But one problem occured is that whenever i try to take backup i have this error below:



About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user testuser
. exporting PUBLIC type synonyms
EXP-00008: ORACLE error 6552 encountered
ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-553: character set name is not recognized
EXP-00000: Export terminated unsuccessfully

I tried dropping user and re-create again ,, but same problem still appears.

Thanks
0
Comment
Question by:Abu Hamdan
6 Comments
 
LVL 1

Accepted Solution

by:
elkhawajah earned 50 total points
ID: 24779750
The NLS_LANG of the other database that you are exporting to should have the same character set as the exporting from database..
0
 
LVL 6

Assisted Solution

by:Greg Clough
Greg Clough earned 100 total points
ID: 24780138
Could you please re-post the character sets that you changed from/to, as those in the question are identical.

Could you also post the current NLS_LANG setting of the machine where you are doing the export.

Here are a couple of hints that may be helpful:

1. Generally the NLS_LANG setting will match whatever client you are using, BUT when doing an export for backup/recovery purposes then the NLS_LANG should match the character set of the database. This way no translations occur, and that means you don't have to worry about any special characters being lost.

2. An export is not usually a good backup technique, and RMAN is the suggested method. If you must use export and are running on v10g or later, then use "Data Pump" instead. It basically does the same job, but is the supported tool of choice. Export is degraded, and will eventually disappear.
0
 
LVL 47

Assisted Solution

by:schwertner
schwertner earned 50 total points
ID: 24784176
For me your character sets are identical.
What and how have you changed.
The character set of a DB could be changed only if you create
a new DB with the desired Character set and Export/Import
the DB.
Other ways are cutting the corners and bring effects
like you are facing.
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 6

Assisted Solution

by:Greg Clough
Greg Clough earned 100 total points
ID: 24806880
@hammdan_1980

Have you had a chance to find the info needed for us to help you?

@schwertner

Actually, you can change character sets other than export/import and it is fully supported by Oracle, but only if the target character set is a true superset of the current database, and you don't change from single to multi-byte or vice versa:

http://download.oracle.com/docs/cd/B10501_01/server.920/a96529/ch10.htm#1009580

It's not cutting a corner if done correctly, but can cause lots of trouble if you are not very careful.
0
 
LVL 7

Author Comment

by:Abu Hamdan
ID: 24808229
first sorry i have been very busy during last days, and traveling to my country after assignment done. Regarding the problem i found that because i changed the characterset by updating the props$ table directly this problem occured so i found the supported corrected one which is as:

SHUTDOWN IMMEDIATE;
STARTUP MOUNT;

ALTER SYSTEM ENABLE RESTRICTED SESSION;

ALTER DATABASE CHARACTER SET AR8MSWIN1256;


so i just run it again and everything now is working without problems

I will split the points for all since all answers helped
0
 
LVL 6

Expert Comment

by:Greg Clough
ID: 24808956
I'm glad it's now working, but remember that in most cases using ALTER DATABASE to switch character sets isn't the right way to go. More common is to use export/import.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
case statement in where clause 5 40
SQL BACKUP - 2008 R2 8 61
grouping on time windows 6 42
PL SQL Search Across Columns 4 19
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
Creating and Managing Databases with phpMyAdmin in cPanel.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now