0% found this document useful (0 votes)
58 views3 pages

30 Nov 23

The document shows SQL commands being run to connect to an Oracle database, create a parameter file (pfile), create a server parameter file (spfile) from the pfile, mount and open the database, and shutdown and restart the database instance. Several errors occurred, mainly due to invalid paths when trying to access files. The key steps were successfully creating the pfile, mounting and opening the database, and restarting the database instance.

Uploaded by

iqbalsohaib38
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views3 pages

30 Nov 23

The document shows SQL commands being run to connect to an Oracle database, create a parameter file (pfile), create a server parameter file (spfile) from the pfile, mount and open the database, and shutdown and restart the database instance. Several errors occurred, mainly due to invalid paths when trying to access files. The key steps were successfully creating the pfile, mounting and opening the database, and restarting the database instance.

Uploaded by

iqbalsohaib38
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

SQL*Plus: Release 11.2.0.2.

0 Production on Thu Nov 30 09:11:28 2023

Copyright (c) 1982, 2014, Oracle. All rights reserved.

SQL> connect system


Enter password:
Connected.
SQL> connect sys as sysdba
Enter password:
Connected.
SQL> v$database
SP2-0042: unknown command "v$database" - rest of line ignored.
SQL> create pfile = 'c:\raclexe\app\oracle\product\11.2.0\server\database\
initXE.ora' from sp file;
create pfile = 'c:\raclexe\app\oracle\product\11.2.0\server\database\initXE.ora'
from sp file

*
ERROR at line 1:
ORA-00922: missing or invalid option

SQL> create pfile = 'c:\raclexe\app\oracle\product\11.2.0\server\database\


initXE.ora' from spfile;
create pfile = 'c:\raclexe\app\oracle\product\11.2.0\server\database\initXE.ora'
from spfile
*
ERROR at line 1:
ORA-09210: sftopn: error opening file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.

SQL> create pfile = 'c:\raclexe\app\oracle\product\11.2.0\server\database\


initXE.ora' from spfile;
create pfile = 'c:\raclexe\app\oracle\product\11.2.0\server\database\initXE.ora'
from spfile
*
ERROR at line 1:
ORA-09210: sftopn: error opening file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.

SQL> create pfile = 'c:\oraclexe\app\oracle\product\11.2.0\server\database\


initXE.ora' from spfile;

File created.

SQL> alter sys set DB_RECOVERY_FILE_DEST='+DATA' scope='both';


alter sys set DB_RECOVERY_FILE_DEST='+DATA' scope='both'
*
ERROR at line 1:
ORA-00940: invalid ALTER command

SQL> alter system set DB_RECOVERY_FILE_DEST='+DATA' scope='both';


alter system set DB_RECOVERY_FILE_DEST='+DATA' scope='both'
*
ERROR at line 1:
ORA-00922: missing or invalid option

SQL> alter system set DB_RECOVERY_FILE_DEST='+DATA' scope=both;

System altered.

SQL> alter system reset open_cursors scope= spfile;

System altered.

SQL> create spfile from memory;

File created.

SQL> create spfile from pfile = 'c:oraclexe\app\oracle\product\server\database\


initeXE.ora';
create spfile from pfile = 'c:oraclexe\app\oracle\product\server\database\
initeXE.ora'
*
ERROR at line 1:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\DATABASE\ORACLEXE\APP\ORACLE\PRODU
CT\SERVER\DATABASE\INITEXE.ORA'

SQL> create spfile from pfile = 'c:oraclexe\app\oracle\product\11.2.0\server\


database\initeXE.ora';
create spfile from pfile = 'c:oraclexe\app\oracle\product\11.2.0\server\database\
initeXE.ora'
*
ERROR at line 1:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\DATABASE\ORACLEXE\APP\ORACLE\PRODU
CT\11.2.0\SERVER\DATABASE\INITEXE.ORA'

SQL> create spfile from pfile ='c:oraclexe\app\oracle\product\11.2.0\server\


database\initeXE.ora';
create spfile from pfile ='c:oraclexe\app\oracle\product\11.2.0\server\database\
initeXE.ora'
*
ERROR at line 1:
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'C:\ORACLEXE\APP\ORACLE\PRODUCT\11.2.0\SERVER\DATABASE\ORACLEXE\APP\ORACLE\PRODU
CT\11.2.0\SERVER\DATABASE\INITEXE.ORA'

SQL> startup nomount;


ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup nomount;
ORACLE instance started.

Total System Global Area 1068937216 bytes


Fixed Size 2260048 bytes
Variable Size 725615536 bytes
Database Buffers 335544320 bytes
Redo Buffers 5517312 bytes
SQL> alter database mount;

Database altered.

SQL> startup;
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown immediate;
ORA-01109: database not open

Database dismounted.
ORACLE instance shut down.
SQL> startup;
ORACLE instance started.

Total System Global Area 1068937216 bytes


Fixed Size 2260048 bytes
Variable Size 725615536 bytes
Database Buffers 335544320 bytes
Redo Buffers 5517312 bytes
Database mounted.
Database opened.
SQL>

You might also like