ODI VM Database location:
/u01/app/oracle/product/11.2.0/orcl
Start/stop database
cd /u01/app/oracle/product/11.2.0/orcl
login prompt: type "/ as sysdba"
Stop:
SHUTDOWN IMMEDIATE
Start:
STARTUP
Restart listner:
-
lsnrctl
status, stop and start
Process to change port
Stop the listener
Alter /u01/app/oracle/product/11.2.0/orcl/network/admin/listener.ora
-
LISTENER =
-
(DESCRIPTION_LIST =
-
(DESCRIPTION =
-
(ADDRESS = (PROTOCOL = TCP)(HOST = ODIGettingStarted)(PORT = 3621))
-
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
-
)
-
)
-
-
DEFAULT_SERVICE_LISTENER = (ORCL)
Alter /u01/app/oracle/product/11.2.0/orcl/network/admin/tnsnames.ora
-
ORCL =
-
(DESCRIPTION =
-
(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 3621))
-
(CONNECT_DATA =
-
(SERVER = DEDICATED)
-
(SERVICE_NAME = orcl)
-
)
-
)
Start the listener.
You will notice "The listener supports no services"
Start SQL and run: (Chaning the address part to match what is in listener.ora)
-
ALTER SYSTEM SET LOCAL_LISTENER = "(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 3621))";
-
-
ALTER SYSTEM REGISTER;
-
-
commit;
Debugging listner
Find process ID
-
ps -fu oracle | grep lsnr | grep -v grep
List listening ports
-
lsof -p **PROCESS ID** | grep IP
View parameter
-
select value from v$parameter where name like '%list%';
RJM Article Type
Quick Reference