startup 이 안되는 경우..shutdown도 안되네요.
글쓴이: shean0 / 작성시간: 월, 2003/10/20 - 10:13오전
지금 redhat 7.3에 오라클을 설치 했는데요..
문제가 생겨서요.
설치는 웹에서 문서를 보고 했구요...
설치시 create DB를 하지 말라고 해서. dbassist로 설치 했습니다.
과정은 아래와 같습니다.
[oracle@mylinux Disk1]$ dbassist ??????? ???????. ?????? ??: ?? ???????: mylinux ?????? ??? ???(SID): mylinux SYS ?? ??: change_on_install SYSTEM ?? ??: manager
여기서 dbassist중간에..root.sh를 실행하였습니다. [위의 로그는 이후 결과 로그입니다] 그런데 ..아래와 같은 로그가 나와서.. ctrl+c로 죽이고 ORACLE_HOME=/data/oracle/products/8.1.7 ORACLE_OWNER=oracle ORACLE_SID= [없음 ] ===>vi root.sh 수정하였습니다. # # Default values set by Installer # [code]ORACLE_SID_INST=mylinux <==삽입[/code] ORACLE_HOME=/data/oracle/products/8.1.7 ORACLE_OWNER=oracle # # If this value is set by the installer are empty # then use the corresponding environment variable # if [ x${ORACLE_SID_INST} = x ] then ORACLE_SID=${ORACLE_SID} else ORACLE_SID=${ORACLE_SID_INST} fi [oracle@mylinux Disk1]$ ls doc index.htm install patch response runInstaller stage [oracle@mylinux Disk1]$ svrmgrl Oracle Server Manager Release 3.1.7.0.0 - Production Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved. Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production With the Partitioning option JServer Release 8.1.7.0.1 - Production SVRMGR> connect internal Connected. SVRMGR> startup LRM-00109: could not open parameter file '?/dbs/init@.ora' ORA-01078: failure in processing system parameters
initmylinux.ora가 존재하는데요..음... [이전에 root.sh]수정없이 설치시에는
존재하지 않았습니다 (벌써 6번째 까는 거네요)
이상없어 보이는데
[oracle@mylinux admin]$ svrmgrl Oracle Server Manager Release 3.1.7.0.0 - Production Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved. Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production With the Partitioning option JServer Release 8.1.7.0.1 - Production SVRMGR> connect internal Connected. SVRMGR> exit Server Manager complete.
이미 존재한다고..그러나 ps로 보는데 없거든요..
[oracle@mylinux bin]$ ./lsnrctl start LSNRCTL for Linux: Version 8.1.7.0.0 - Production on 20-OCT-2003 09:38:04 (c) Copyright 1998 Oracle Corporation. All rights reserved. TNS-01106: Listener using listener name LISTENER has already been started [oracle@mylinux bin]$ ps -ef | grep lsnrctl 결과 없음
현재 oracle프로세스가 떠있으니..[물론 제가 띄운것은 아니구, 설치된후 자동으로 된듯합니다] startup이 안된것은 당연하다해두. shutdown까지??
cle@mylinux 8.1.7]$ svrmgrl Oracle Server Manager Release 3.1.7.0.0 - Production Copyright (c) 1997, 1999, Oracle Corporation. All Rights Reserved. Oracle8i Enterprise Edition Release 8.1.7.0.1 - Production With the Partitioning option JServer Release 8.1.7.0.1 - Production SVRMGR> connect internal Connected. SVRMGR> create tablespace game datafile '/data/oracle/oradata/mylinux/test.dbf' size 300M default storage ( initial 100K next 50k) ONLINE; create tablespace game datafile '/data/oracle/oradata/mylinux/test.dbf' size 300M default storage ( initial 100K next 50k) ONLINE * ORA-01034: ORACLE not available SVRMGR> show error MGR-00111: illegal SHOW option SVRMGR> shutdown ORA-01012: not logged on SVRMGR> shutdown abort ORA-07217: sltln: environment variable cannot be evaluated.
아래는 참조 입니다. ===>아직 아무것두수정하지 않았습니다.
vi tnsnames.ora MYLINUX = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mylinux)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = mylinux) ) ) INST1_HTTP = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mylinux)(PORT = 1521)) ) (CONNECT_DATA = (SERVER = SHARED) (SERVICE_NAME = mylinux) (PRESENTATION = http://admin) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
vi listener.ora # LISTENER.ORA Network Configuration File: /data/oracle/products/8.1.7/network/admin/listener.ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = mylinux)(PORT = 1521)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) ) ) SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /data/oracle/products/8.1.7) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME = mylinux) (ORACLE_HOME = /data/oracle/products/8.1.7) (SID_NAME = mylinux) ) )
vi /etc/hosts xxx.xxx.xxx.xxx mylinux loghost 127.0.0.1 localhost <= IP : xxx
vi initmylinux.ora ..... db_name = "mylinux" instance_name = mylinux service_names = mylinux # db_files = 80 # SMALL # db_files = 400 # MEDIUM # db_files = 1500 # LARGE control_files = ("/data/oracle//oradata/mylinux/control01.ctl", "/data/oracle//oradata/mylinux/con trol02.ctl ", "/data/oracle//oradata/mylinux/control03.ctl") ....
[oracle@mylinux dbs]$ pwd /data/oracle/products/8.1.7/dbs [orcle@mylinux dbs]$ ls init.ora initdw.ora initmylinux.ora lkMYLINUX orapwmylinux
Forums:
[추가정보] 왜.. startup, shutdown ,create space가 안된는것인
왜.. startup, shutdown ,create space가 안된는것인지??
아래는 정상이라고 나온것 같은데요..
언제나 즐프를 꿈꾸며~
[추가정보] profile 설정값들.
oracle 에서 echo $ORACLE_SID를 하니.. 값이 없네요..
왜 그런지.. 더 봐야 겠지만서두...먼저 올립니다.
profile정보들입니다.
3. oracle .bash_profile
env로는 나오는데..
echo로는 안 보이네요 .. 이거 참...
언제나 즐프를 꿈꾸며~
댓글 달기