原文地址:http://blog.csdn.net/wyzlwyzl/article/details/7714289
SQL> startup;
ORA-00119: invalid specification for system parameter LOCAL_LISTENER
ORA-00132: syntax error or unresolved network name ’LISTENER_ORCL’
网上我找了一些资料, 加上我个人的处理, 解决了此问题:
修改安装目录下的SPFILEORCL.ORA文件, 我本机的具体位置:D:appAdministratorproduct11.2.0dbhome_2database目录下, 而不是...dbhome_2dbs目录下;
用ultraedit或记事本打开该文件, 如果没有SPFILEORCL.ORA这个文件,也可以修改INITorcl这个文件(orcl为实例名)。源文件内容如下:
C" ?
? 續?
C C"
E/ orcl.__db_cache_size=343932928
orcl.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl.__oracle_base='D:appAdministrator'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=419430400
orcl.__sga_target=637534208
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=276824064
orcl.__streams_pool_size=0
*.audit_file_dest='D:appAdministratoradminorcladump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='D:appAdministratororadataorclcontrol01.cC C"
g
tl','D:appAdministratorflash_recovery_areaorclcontrol02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='D:appAdministratorflash_recovery_area'
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest='D:appAdministrator'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
*.local_listener='LISTENER_ORCL'
*.memory_target=1056964608
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.undo_tablespace='UNDOTBS1'
C C" Ge
C C" Fe
C
文件的首尾有不规则的代码(类似于乱码, 不用管它)
修改*.local_listener='LISTENER_ORCL'这一行, 修改后如下(基于我本机):
*.local_listener='(ADDRESS_LIST=(Address=(Protocol=tcp) (Host=WIN-COSDJDSFC4C)(Port=1521)))'
其中WIN-COSDJDSFC4C是机器名,通过桌面我的电脑, 右键属性, 即可查到;
其他属性,如端口, 协议视具体情况修改.
保存即可, 修改后的内容为:
C" ?
? 續?
C C"
E/ orcl.__db_cache_size=343932928
orcl.__java_pool_size=4194304
orcl.__large_pool_size=4194304
orcl.__oracle_base='D:appAdministrator'#ORACLE_BASE set from environment
orcl.__pga_aggregate_target=419430400
orcl.__sga_target=637534208
orcl.__shared_io_pool_size=0
orcl.__shared_pool_size=276824064
orcl.__streams_pool_size=0
*.audit_file_dest='D:appAdministratoradminorcladump'
*.audit_trail='db'
*.compatible='11.2.0.0.0'
*.control_files='D:appAdministratororadataorclcontrol01.cC C"
g
tl','D:appAdministratorflash_recovery_areaorclcontrol02.ctl'
*.db_block_size=8192
*.db_domain=''
*.db_name='orcl'
*.db_recovery_file_dest='D:appAdministratorflash_recovery_area'
*.db_recovery_file_dest_size=4039114752
*.diagnostic_dest='D:appAdministrator'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'
启动成功
Oracle10.2的数据库可参考:http://hi.baidu.com/gmail07/item/bc19a889a8900ec099255f26