Spfile - Case Sensitive(Environment)
Spfile - Case Sensitive(Environment)
[email protected]'s password:
+----------------------------------------------------------------------+
� � MobaXterm Personal Edition v22.2 � �
� (SSH client, X server and network tools) �
� �
� ? SSH session to [email protected] �
� � Direct SSH : ? �
� � SSH compression : ? �
� � SSH-browser : ? �
� � X11-forwarding : ? (remote display is forwarded through SSH) �
� �
� ? For more info, ctrl+click on help or visit our website. �
+----------------------------------------------------------------------+
SQL>
SQL>
SQL>
SQL>
SQL>
SQL>
SQL> startup;
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'/u01/app/oracle/product/19.0.0/dbhome_1/dbs/initoracle.ora'
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'/u01/app/oracle/product/19.0.0/dbhome_1/dbs/initoracle.ora'
SQL> exit
Disconnected
[oracle@oracle ~]$ ls
almer.txt Downloads LINUX.X64_193000_db_home.zip Pictures Templates
Desktop hello.class Music Public Videos
Documents hello.java Oracle scripts
[oracle@oracle ~]$ cd
[oracle@oracle ~]$ cd /u01/app/oracle/product/19.0.0/dbhome_1
[oracle@oracle dbhome_1]$ ls
addnode deinstall jdbc opmn racg sqlj
apex demo jdk oracore rdbms sqlpatch
assistants diagnostics jlib oraInst.loc relnotes sqlplus
bin dmu ldap ord root.sh srvm
cfgtoollogs drdaas lib ords root.sh.old suptools
clone dv log oss root.sh.old.1 ucp
crs env.ora md oui root.sh.old.2 usm
css has mgw owm root.sh.old.3 utl
ctx hs network perl runInstaller wwg
cv install nls plsql schagent.conf xdk
data instantclient odbc precomp sdk
dbjava inventory olap QOpatch slax
dbs javavm OPatch R sqldeveloper
[oracle@oracle dbhome_1]$ cd dbs
[oracle@oracle dbs]$ ls
hc_orcl.dat init.ora lkORCL orapworcl spfileorcl.ora
[oracle@oracle dbs]$ cat init.ora
#
# $Header: rdbms/admin/init.ora /main/25 2015/05/14 15:02:30 kasingha Exp $
#
# Copyright (c) 1991, 2015, Oracle and/or its affiliates. All rights reserved.
# NAME
# init.ora
# FUNCTION
# NOTES
# MODIFIED
# kasingha 05/12/15 - 21041456 - fix copyright header
# ysarig 02/01/12 - Renaming flash_recovery_area to
# fast_recovery_area
# ysarig 05/14/09 - Updating compatible to 11.2
# ysarig 08/13/07 - Fixing the sample for 11g
# atsukerm 08/06/98 - fix for 8.1.
# hpiao 06/05/97 - fix for 803
# glavash 05/12/97 - add oracle_trace_enable comment
# hpiao 04/22/97 - remove ifile=, events=, etc.
# alingelb 09/19/94 - remove vms-specific stuff
# dpawson 07/07/93 - add more comments regarded archive start
# maporter 10/29/92 - Add vms_sga_use_gblpagfile=TRUE
# jloaiza 03/07/92 - change ALPHA to BETA
# danderso 02/26/92 - change db_block_cache_protect to _db_block_cache_p
# ghallmar 02/03/92 - db_directory -> db_domain
# maporter 01/12/92 - merge changes from branch 1.8.308.1
# maporter 12/21/91 - bug 76493: Add control_files parameter
# wbridge 12/03/91 - use of %c in archive format is discouraged
# ghallmar 12/02/91 - add global_names=true, db_directory=us.acme.com
# thayes 11/27/91 - Change default for cache_clone
# jloaiza 08/13/91 - merge changes from branch 1.7.100.1
# jloaiza 07/31/91 - add debug stuff
# rlim 04/29/91 - removal of char_is_varchar2
# Bridge 03/12/91 - log_allocation no longer exists
# Wijaya 02/05/91 - remove obsolete parameters
#
##############################################################################
# Example INIT.ORA file
#
# This file is provided by Oracle Corporation as a starting point for
# customizing the Oracle Database installation for your site.
#
# NOTE: The values that are used in this file are example values only.
# You may want to adjust those values for your specific requirements.
# You might also consider using the Database Configuration Assistant
# tool (DBCA) to create a server-side initialization parameter file
# and to size your initial set of tablespaces. See the
# Oracle Database 2 Day DBA guide for more information.
###############################################################################
# Change '<ORACLE_BASE>' to point to the oracle base (the one you specify at
# install time)
db_name='ORCL'
memory_target=1G
processes = 150
audit_file_dest='<ORACLE_BASE>/admin/orcl/adump'
audit_trail ='db'
db_block_size=8192
db_domain=''
db_recovery_file_dest='<ORACLE_BASE>/fast_recovery_area'
db_recovery_file_dest_size=2G
diagnostic_dest='<ORACLE_BASE>'
dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'
open_cursors=300
remote_login_passwordfile='EXCLUSIVE'
undo_tablespace='UNDOTBS1'
# You may want to ensure that control files are created on separate physical
# devices
control_files = (ora_control1, ora_control2)
compatible ='11.2.0'
[oracle@oracle dbs]$ ls -ltr
total 20
-rw-r--r--. 1 oracle oracle 3079 May 14 2015 init.ora
-rw-r-----. 1 oracle oracle 24 Oct 8 04:52 lkORCL
-rw-r-----. 1 oracle oracle 2048 Oct 8 04:54 orapworcl
-rw-rw----. 1 oracle oracle 1544 Oct 19 05:08 hc_orcl.dat
-rw-r-----. 1 oracle oracle 3584 Oct 19 05:08 spfileorcl.ora
[oracle@oracle dbs]$ ps -ef | grep pmon
oracle 12177 11614 0 21:05 pts/1 00:00:00 grep --color=auto pmon
[oracle@oracle dbs]$ lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
[oracle@oracle dbs]$ sqlplus / as sysdba
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 20-OCT-2024 21:14:33
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora
Listener Log File
/u01/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@oracle dbs]$ lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 20-OCT-2024 21:14:33
Uptime 0 days 0 hr. 0 min. 13 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora
Listener Log File
/u01/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
The listener supports no services
The command completed successfully
[oracle@oracle dbs]$ sqlplus / as sysdba
SQL> exit
Disconnected
[oracle@oracle dbs]$ dbca
[oracle@oracle dbs]$ sudo vi /etc/oratab
[sudo] password for oracle:
[oracle@oracle dbs]$ sqlplus / as sysdba
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'/u01/app/oracle/product/19.0.0/dbhome_1/dbs/initoracle.ora'
SQL> exit
Disconnected
[oracle@oracle dbs]$ lsnrctl start
TNS-01106: Listener using listener name LISTENER has already been started
[oracle@oracle dbs]$ lsnrctl status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production
Start Date 20-OCT-2024 21:14:33
Uptime 0 days 0 hr. 33 min. 50 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File
/u01/app/oracle/product/19.0.0/dbhome_1/network/admin/listener.ora
Listener Log File
/u01/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "24f3925f6bbe3ec8e0638f44a8c08342.localdomain" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "86b637b62fdf7a65e053f706e80a27ca.localdomain" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "test.localdomain" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "testXDB.localdomain" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
Service "test_local.localdomain" has 1 instance(s).
Instance "test", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@oracle dbs]$ sqlplus / as sysdba
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'/u01/app/oracle/product/19.0.0/dbhome_1/dbs/initoracle.ora'
SQL> wzir
SP2-0042: unknown command "wzir" - rest of line ignored.
SQL> e^[zir
SP2-0042: unknown command "eir" - rest of line ignored.
SQL> exit
Disconnected
[oracle@oracle dbs]$ . oraenv
ORACLE_SID = [oracle] ? TEST
ORACLE_HOME = [/home/oracle] ?
ORACLE_BASE environment variable is not being set since this
information is not available for the current user ID oracle.
You can set ORACLE_BASE manually if it is required.
Resetting ORACLE_BASE to its previous value or ORACLE_HOME
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@oracle dbs]$ cat /etc/oratab
#
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'/u01/app/oracle/product/19.0.0/dbhome_1/dbs/initTEST.ora'
SQL> /uexit
SP2-0042: unknown command "/uexit" - rest of line ignored.
SQL> exit
Disconnected
[oracle@oracle dbs]$ cd /u01/app/oracle/product/19.0.0/dbhome_1/dbs/i
-bash: cd: /u01/app/oracle/product/19.0.0/dbhome_1/dbs/i: No such file or directory
[oracle@oracle dbs]$ cd /u01/app/oracle/product/19.0.0/dbhome_1/dbs
[oracle@oracle dbs]$ ls -ltr
total 36
-rw-r--r--. 1 oracle oracle 3079 May 14 2015 init.ora
-rw-r-----. 1 oracle oracle 24 Oct 8 04:52 lkORCL
-rw-r-----. 1 oracle oracle 2048 Oct 8 04:54 orapworcl
-rw-rw----. 1 oracle oracle 1544 Oct 19 05:08 hc_orcl.dat
-rw-r-----. 1 oracle oracle 3584 Oct 19 05:08 spfileorcl.ora
-rw-r-----. 1 oracle oracle 24 Oct 20 21:17 lkTEST
-rw-r-----. 1 oracle oracle 2048 Oct 20 21:19 orapwtest
-rw-rw----. 1 oracle oracle 1544 Oct 20 21:28 hc_test.dat
-rw-r-----. 1 oracle oracle 3584 Oct 20 21:28 spfiletest.ora
[oracle@oracle dbs]$ . oraenv
ORACLE_SID = [TEST] ?
ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/19.0.0/dbhome_1
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@oracle dbs]$ sqlplus / as sysdba
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file
'/u01/app/oracle/product/19.0.0/dbhome_1/dbs/initTEST.ora'
SQL> exit
Disconnected
[oracle@oracle dbs]$ pwd
/u01/app/oracle/product/19.0.0/dbhome_1/dbs
[oracle@oracle dbs]$ ls
hc_orcl.dat init.ora lkTEST orapwtest spfiletest.ora
hc_test.dat lkORCL orapworcl spfileorcl.ora
[oracle@oracle dbs]$ env | grep ORA
ORACLE_SID=TEST
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/19.0.0/dbhome_1
[oracle@oracle dbs]$ ps -ef | grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
[oracle@oracle dbs]$ ps -ef | grep pmon
oracle 15962 1 0 21:28 ? 00:00:00 ora_pmon_test
oracle 22959 11614 0 21:53 pts/1 00:00:00 grep --color=auto pmon
[oracle@oracle dbs]$ . oraenv
ORACLE_SID = [TEST] ? test
The Oracle base remains unchanged with value /u01/app/oracle
[oracle@oracle dbs]$ sqlplus / as sysdba
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> startup
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL>