Home » SQL & PL/SQL » SQL & PL/SQL » error using clalter.plb (Solaris sparc, Oracle 10G Enterprise)
error using clalter.plb [message #586325] Wed, 05 June 2013 05:12 Go to next message
deepak416
Messages: 63
Registered: January 2013
Location: Pune
Member
Hi ,

I am trying to change database characters using csalter.plb but i am facing below errors

bash-3.2$ $ORACLE_HOME/rdbms/admin/csalter.plb
/opt/oracle/product/10g/rdbms/admin/csalter.plb: line 2: /bin: is a directory
/opt/oracle/product/10g/rdbms/admin/csalter.plb: line 3: All: command not found
/opt/oracle/product/10g/rdbms/admin/csalter.plb: line 4: when: command not found
/opt/oracle/product/10g/rdbms/admin/csalter.plb: line 5: */: No such file or directory
/opt/oracle/product/10g/rdbms/admin/csalter.plb: line 6: insert: command not found
/opt/oracle/product/10g/rdbms/admin/csalter.plb: line 7: syntax error near unexpected token `u.user#,'
/opt/oracle/product/10g/rdbms/admin/csalter.plb: line 7: ` select distinct u.user#, u.name from sys.user$ u '


Please help and is there any way to better way to change the same
Re: error using clalter.plb [message #586328 is a reply to message #586325] Wed, 05 June 2013 05:24 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This is a SQL script, you must execute it in SQL*Plus (as SYS) not at OS prompt.

Regards
Michel
Re: error using clalter.plb [message #586344 is a reply to message #586328] Wed, 05 June 2013 06:21 Go to previous messageGo to next message
deepak416
Messages: 63
Registered: January 2013
Location: Pune
Member
ALTER DATABASE NATIONAL CHARACTER SET INTERNAL_USE AL16UTF16

What is the meaning of INTERNAL_USE in above command.


-Thanks
Re: error using clalter.plb [message #586346 is a reply to message #586344] Wed, 05 June 2013 06:25 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
As far as I can tell, it means that YOU shouldn't use it.
Re: error using clalter.plb [message #586349 is a reply to message #586346] Wed, 05 June 2013 06:35 Go to previous messageGo to next message
deepak416
Messages: 63
Registered: January 2013
Location: Pune
Member
what's the reason
Re: error using clalter.plb [message #586351 is a reply to message #586349] Wed, 05 June 2013 06:41 Go to previous messageGo to next message
Littlefoot
Messages: 21808
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
As it name implies, it should be used by Oracle, internally. You are "external" and, if you use it "just because" (you thought you'll fix something or make things work better or whatever else), which you were NOT explicitly told by Oracle Support staff, you might screw your database up.
Re: error using clalter.plb [message #586353 is a reply to message #586351] Wed, 05 June 2013 06:51 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
With this peculiar command, it is not you "might" but you will.

Regards
Michel
Re: error using clalter.plb [message #586358 is a reply to message #586344] Wed, 05 June 2013 07:39 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
As far as my experience with changing character set, that too when I was working abroad at client site, I can suggest only 1 thing, that changing the character set without checking all the NLS views and gv_$nls_parameters, it can result to data loss and unusual DB behavior.

Well, I have seen few DBAs suggesting this:-
SHUTDOWN IMMEDIATE;
STARTUP RESTRICT;
ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
ALTER SYSTEM SET AQ_TM_PROCESSES=0;

ALTER DATABASE CHARACTER SET WE8MSWIN1252;

-- if the above fails:
ALTER DATABASE CHARACTER SET INTERNAL_USE WE8MSWIN1252;
SHUTDOWN IMMEDIATE;
STARTUP;

SELECT *
FROM gv_$nls_parameters;


However, I personally restrict myself.
Re: error using clalter.plb [message #586361 is a reply to message #586358] Wed, 05 June 2013 08:22 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Quote:
-- if the above fails:
ALTER DATABASE CHARACTER SET INTERNAL_USE WE8MSWIN1252;


No, NO, NO, NO!!!

Regard
Michel
Re: error using clalter.plb [message #586365 is a reply to message #586361] Wed, 05 June 2013 10:03 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
[quote title=Michel Cadot wrote on Wed, 05 June 2013 18:52]Quote:
No, NO, NO, NO!!!


That's why I stated "However, I personally restrict myself."
Re: error using clalter.plb [message #586366 is a reply to message #586365] Wed, 05 June 2013 10:25 Go to previous messageGo to next message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Better NEVER post such thing.
If you post it, it WILL be used, ANYWAY.

Regards
Michel
Re: error using clalter.plb [message #586378 is a reply to message #586366] Wed, 05 June 2013 14:40 Go to previous messageGo to next message
Lalit Kumar B
Messages: 3174
Registered: May 2013
Location: World Wide on the Web
Senior Member
Michel Cadot wrote on Wed, 05 June 2013 20:55
Better NEVER post such thing.
If you post it, it WILL be used, ANYWAY.


Well that's the reason we have test environments in software field(just kidding)
Re: error using clalter.plb [message #586387 is a reply to message #586378] Wed, 05 June 2013 23:58 Go to previous message
Michel Cadot
Messages: 68645
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Laughing
Previous Topic: Equivalent query
Next Topic: loading java reosurce in 11gr2
Goto Forum:
  


Current Time: Thu Apr 25 15:15:55 CDT 2024