dbTalk Databases Forums  

9iR2 exp -> 10g imp

comp.databases.oracle.server comp.databases.oracle.server


Discuss 9iR2 exp -> 10g imp in the comp.databases.oracle.server forum.



Reply
 
Thread Tools Display Modes
  #141  
Old   
joel garry
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-16-2008 , 05:16 PM






On Jun 16, 2:04*pm, Arch <send... (AT) spam (DOT) net> wrote:

Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.

Here's two 'obvious' ways:

SQL> select CHR(ASCII('''')) from dual;

C
-
'
SQL> select 'a'||''''||'b' from dual;

'A'
---
a'b

(those would be 4 single quotes).

Also it can be useful to have a NOT IN ('SYS','SYSTEM' etc laying
around to put into scripts.

jg
--
@home.com is bogus.
http://www.infoworld.com/article/08/...-admins_1.html


Reply With Quote
  #142  
Old   
gazzag
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-17-2008 , 05:05 AM






On 16 Jun, 22:04, Arch <send... (AT) spam (DOT) net> wrote:
Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.
SQL> select chr(39)||' surrounded by quotes '||chr(39) from dual;

CHR(39)||'SURROUNDEDBYQU
------------------------
' surrounded by quotes '

HTH

-g


Reply With Quote
  #143  
Old   
gazzag
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-17-2008 , 05:05 AM



On 16 Jun, 22:04, Arch <send... (AT) spam (DOT) net> wrote:
Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.
SQL> select chr(39)||' surrounded by quotes '||chr(39) from dual;

CHR(39)||'SURROUNDEDBYQU
------------------------
' surrounded by quotes '

HTH

-g


Reply With Quote
  #144  
Old   
gazzag
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-17-2008 , 05:05 AM



On 16 Jun, 22:04, Arch <send... (AT) spam (DOT) net> wrote:
Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.
SQL> select chr(39)||' surrounded by quotes '||chr(39) from dual;

CHR(39)||'SURROUNDEDBYQU
------------------------
' surrounded by quotes '

HTH

-g


Reply With Quote
  #145  
Old   
gazzag
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-17-2008 , 05:05 AM



On 16 Jun, 22:04, Arch <send... (AT) spam (DOT) net> wrote:
Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.
SQL> select chr(39)||' surrounded by quotes '||chr(39) from dual;

CHR(39)||'SURROUNDEDBYQU
------------------------
' surrounded by quotes '

HTH

-g


Reply With Quote
  #146  
Old   
gazzag
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-17-2008 , 05:05 AM



On 16 Jun, 22:04, Arch <send... (AT) spam (DOT) net> wrote:
Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.
SQL> select chr(39)||' surrounded by quotes '||chr(39) from dual;

CHR(39)||'SURROUNDEDBYQU
------------------------
' surrounded by quotes '

HTH

-g


Reply With Quote
  #147  
Old   
gazzag
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-17-2008 , 05:05 AM



On 16 Jun, 22:04, Arch <send... (AT) spam (DOT) net> wrote:
Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.
SQL> select chr(39)||' surrounded by quotes '||chr(39) from dual;

CHR(39)||'SURROUNDEDBYQU
------------------------
' surrounded by quotes '

HTH

-g


Reply With Quote
  #148  
Old   
gazzag
 
Posts: n/a

Default Re: 9iR2 exp -> 10g imp - 06-17-2008 , 05:05 AM



On 16 Jun, 22:04, Arch <send... (AT) spam (DOT) net> wrote:
Quote:
Spooling a select from dba_users proved to be far and away the best
way to create a script to create the users. *I manually edited out the
various "built in" accounts (sys, system, etc). *The script included
passwords, profiles and tablepaces. *I couldn't figure out how to
embed a literal quote character (') into the spool output, so I used
_Q_, then a single global replace with an editor fixed the file.
SQL> select chr(39)||' surrounded by quotes '||chr(39) from dual;

CHR(39)||'SURROUNDEDBYQU
------------------------
' surrounded by quotes '

HTH

-g


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.