Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Single Quotes and rman sql Command 1

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

On a Solaris 8 system running Oracle 9i I am having a problem with one of my rman commands.

Code:
run {
sql 'create pfile='/mydir/initTEST.ora' from spfile';
...
}

I does not like the single quotes for the pfile= parameter. I have tried "" and other variations.

What can you recommend?

Thanks,

Michael42
 
Michael,

Have you tried to successive single quotes (like in SQL to create a single quote)?:
Code:
run {
sql 'create pfile=''/mydir/initTEST.ora'' from spfile';
...
}
I am not an rman aficionado, so I don't know if this will help, but it couldn't give you a worse result than it already gave you.

Let us know your findings.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[ Providing low-cost remote Database Admin services]
Click here to join Utah Oracle Users Group on Tek-Tips if you use Oracle in Utah USA.
 
>> Have you tried to successive single quotes

Yes. :-(


Any other suggestions?

Thanks,

Michael42
 
Like Santa I do not know rman, but will

Code:
run {
sql 'create pfile="/mydir/initTEST.ora" from spfile';
...
}
or
Code:
run {
sql "create pfile='/mydir/initTEST.ora' from spfile";
...
}
work?
 
Both quite near:
Code:
run {
sql "create pfile=''/mydir/initTEST.ora'' from spfile";
...
}
works.

Stefan
 
stefanhei,

That nailed it! :)

Thanks for posting. I think we were all pretty close...but I will not quote Santa! :)

Thanks,

Michael42
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top