sikyala
asked on
Help InitSID.ora problem
I accidently set a parameter to an invalid directory. I shutdown the database before I realized it. When I tried to start the database again I got an error that the parameter in question has an invalid directory. So I opened the spfileSID.ora and changed the directory of the parameter to a valid directory and saved it. But when I went back to startup the database again I got the following error:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/oracle/product/app/1 0.2.1/dbs/ initJoshua .ora'
So I issue the following command:
SQL> startup pfile='/u01/oracle/product /app/10.2. 1/dbs/spfi leJoshua.o ra';
But I get this error:
LRM-00123: invalid character 7 found in the input file
ORA-01078: failure in processing system parameters
Here is the contents of the file:
^G^B^B^D^D$Gq^KJoshua.__db _cache_siz e=40684748 8
Joshua.__java_pool_size=25 165824
Joshua.__large_pool_size=4 194304
Joshua.__shared_pool_size= 167772160
Joshua.__streams_pool_size =0
*.audit_file_dest='/u01/ap p/oracle/a dmin/Joshu a/adump'
*.background_dump_dest='/u 01/app/ora cle/admin/ Joshua/bdu mp'
*.compatible='10.2.0.1.0'
*.control_files='/u04/orad ata/Joshua /control01 .ctl','/u0 4/oradata/ Joshua/con trol02.ctl ','/u04/or adata/Josh ua/control 03.ctl'
*.core_dump_dest='/u01/app /oracle/ad min/Joshua /cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_ count=16
*.db_name='Joshua'
*.db_recovery_file_dest_si ze=2147483 648
*.db_recovery_file_dest='/ u04/flash_ recover_ar ea'
*.dispatchers='(PROTOCOL=T CP) (SERVICE=JoshuaXDB)'
*.job_queue_processes=10
*.log_archive_dest_1='loca tion=/u05/ archive_lo g'
*.open_cursors=300
*.pga_aggregate_target=203 423744
*.processes=150
*.remote_login_passwordfil e='EXCLUSI VE'
*.sga_target=612368384
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS 1'
*.user_dump_dest='/u01/app /oracle/ad min/Joshua /udump'
I don't know what shouldn't be there. How do I fix this?
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/oracle/product/app/1
So I issue the following command:
SQL> startup pfile='/u01/oracle/product
But I get this error:
LRM-00123: invalid character 7 found in the input file
ORA-01078: failure in processing system parameters
Here is the contents of the file:
^G^B^B^D^D$Gq^KJoshua.__db
Joshua.__java_pool_size=25
Joshua.__large_pool_size=4
Joshua.__shared_pool_size=
Joshua.__streams_pool_size
*.audit_file_dest='/u01/ap
*.background_dump_dest='/u
*.compatible='10.2.0.1.0'
*.control_files='/u04/orad
*.core_dump_dest='/u01/app
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_
*.db_name='Joshua'
*.db_recovery_file_dest_si
*.db_recovery_file_dest='/
*.dispatchers='(PROTOCOL=T
*.job_queue_processes=10
*.log_archive_dest_1='loca
*.open_cursors=300
*.pga_aggregate_target=203
*.processes=150
*.remote_login_passwordfil
*.sga_target=612368384
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS
*.user_dump_dest='/u01/app
I don't know what shouldn't be there. How do I fix this?
ASKER
I tried and now I get the following error:
SQL> startup spfile=='/u01/oracle/produ ct/app/10. 2.1/dbs/sp fileJoshua .ora';
SP2-0714: invalid combination of STARTUP options
SQL> startup spfile=='/u01/oracle/produ
SP2-0714: invalid combination of STARTUP options
ASKER
I deleted ^G^B^B^D^D$Gq^K from the line where Joshua.__db_cache_size=406 847488 is located. Then I typed startup nomount. Then I altered the parameter and assigned a valid directory. Then I mounted and opened the database. I am not sure what to do next to ensure that there is nothing wrong with the database. I tried create pfile from spfile and I got an error:
SQL> create pfile from spfile;
create pfile from spfile
*
ERROR at line 1:
ORA-27046: file size is not a multiple of logical block size Additional information: 1
How do I fix this?
SQL> create pfile from spfile;
create pfile from spfile
*
ERROR at line 1:
ORA-27046: file size is not a multiple of logical block size Additional information: 1
How do I fix this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Well I totally blew it. I don't know how to fix it.
I have a problem. I don't have a pfile. I did copy statement before I got your message when I was trying to fix the problem.
cp $ORACLE_HOME/dbs/spfileJos hua $ORACLE_HOME/initJoshua.or a
It looks like this now in my directory:
-rw-r----- 1 oracle dba 1027 Dec 9 11:20 initJoshua.ora
-rw-r----- 1 oracle dba 1036 Dec 8 16:56 spfileJoshua.ora
I have a problem. I don't have a pfile. I did copy statement before I got your message when I was trying to fix the problem.
cp $ORACLE_HOME/dbs/spfileJos
It looks like this now in my directory:
-rw-r----- 1 oracle dba 1027 Dec 9 11:20 initJoshua.ora
-rw-r----- 1 oracle dba 1036 Dec 8 16:56 spfileJoshua.ora
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You are right I found a init.ora file in the pfile directory. Thanks!
If you've heavily modified parameters since you created the instance, it's a little more work but:
open your old spfile in an editor and manually copy the parameters to a new init.ora making sure not to copy any of the binary data. Then you can use that pfile to generate a new spfile as already mentioned.
open your old spfile in an editor and manually copy the parameters to a new init.ora making sure not to copy any of the binary data. Then you can use that pfile to generate a new spfile as already mentioned.
Never edit SPFILE!
Before changing init.ora files do a backup copy!
Before changing init.ora files do a backup copy!
>>Never edit SPFILE!
Agreed but since we've already passed that point... You can still see the parameters in the SPFILE in text form if opened with a text editor. If they've modified numerous parameters since DB creation I'm only suggesting copying the text from the FUBARed SPFILE and paste them into a new PFILE then use this new PFILE to rebuild the SPFILE.
Agreed but since we've already passed that point... You can still see the parameters in the SPFILE in text form if opened with a text editor. If they've modified numerous parameters since DB creation I'm only suggesting copying the text from the FUBARed SPFILE and paste them into a new PFILE then use this new PFILE to rebuild the SPFILE.
ASKER
I was told that when I created the spfile using the create statement that it would overwrite the current spfile. Is that true? I issued the following statement:
create spfile='$ORACLE_HOME/dbs/s pfileJoshu a.ora' from pfile='/u01/app/oracle/adm in/Joshua/ pfile/init .ora.11720 06175052';
create spfile='$ORACLE_HOME/dbs/s
ASKER
I only have 2 parameters to alter. I tried altering the first parameter and got the following error:
SQL> alter system set log_archive_dest_1='/u05/a rchive_log ';
alter system set log_archive_dest_1='/u05/a rchive_log '
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed
The directory does exist. I don't know what the problem is.
SQL> alter system set log_archive_dest_1='/u05/a
alter system set log_archive_dest_1='/u05/a
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16024: parameter LOG_ARCHIVE_DEST_1 cannot be parsed
The directory does exist. I don't know what the problem is.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
When I typed this alter system set log_archive_dest_1='locati on=/u05/ar chive_log' scope=spfile; I still got an error because I had started the database using pfile. I shut down the database and restarted it and was able to issue the command.
Thanks!!!
Thanks!!!
should be
SQL> startup spfile='/u01/oracle/produc
if you are using an spfile...
(note: it is startup SPFILE=, not startup PFILE= )
give that a go and see what happens.