I was answering your question on a smartphone, so I was trying to type as little as possible. I assumed when you read,
- Code: Select all
/path/to/prdspfile.ora
You would say to yourself, "Wait a minute. That is not the path to my spfile!", and change it to the correct path. You will often see people write "/path/to" to indicate *you* need to add the correct path!
So, based on the information from your previous posts, the command should be,
- Code: Select all
create pfile='/tmp/pfile.txt' from spfile='/home/oracle/app/oracle/product/11.1.0/db_1/dbs/prdspfile.ora';
This command creates the pfile from the existing spfile. The fact it failed in the previous attempt meant the pfile was not created, which is why the second command failed. The second command can be done unchanged, once the first command has run successfully.
- Code: Select all
create spfile from pfile='/tmp/pfile.txt';
In this case, the word "spfile" tells Oracle to use the default location, based on the current ORACLE_HOME and ORACLE_SID. We could specify the name explicitly, but we don't need to. We had to for the first command because relying on the default would not work as the source spfile uses "prd" rather than the ORACLE_SID of "test", hence the need for the explicit location.
You should read this.
http://www.oracle-base.com/articles/9i/ ... meters.php
Cheers
Tim...