ORACLE安装前后
<div style="padding-top: 0px; padding-right: 30px; padding-bottom: 0px; padding-left: 30px; height: 1846px; margin: 0px;"><div style="font-size: 14px; color: #ffffff; padding: 0px; margin: 0px;">安装前:
计算机名必须小于8位(不能以数字开头及不能修改):test(随意起名,只要合乎要求)
关闭防火墙
设置ip:192.168.1.84 (以后不得修改)(随便自己设置一个ip即可)
连接网线(本地连接,接根网线就行)
安装:企业版
不要修改目录,只能选择盘位置
安装后:
登录到数据库:orcl: http://test:1158/em 登录:sys/sysadmin/sysdba
scott用户默认为lock,解锁scott用户:
sqlplus /nolog
conn / as sysdba
alter user scott identified by tiger;
alter user scott account unlock;
isqlplus: http://test:5560/isqlplus/ 登录:scott/tiger/orcl
创建oracle 10g启动关闭bat文件:
1.启动oracle 服务 start_oracle_service.bat
@echo off
rem to start oracl services
net start OracleServiceORCL
net start OracleDBconsoleorcl
net start OracleOraDb10g_home1TNSListener
rem net start OracleOraDb10g_home1iSQL*Plus
pause
exit
2.停止oracle服务 stop_oracle_service.bat
@echo off
rem to stop oracl services
net stop OracleDBconsoleorcl
net stop OracleOraDb10g_home1TNSListener
rem net stop OracleOraDb10g_home1iSQL*Plus
net stop OracleServiceORCL
pause
exit
常见问题:OracleDBConsoleorcl无法启动
解决方法:
在命令行下输入
emctl start dbconsole
提示报错,ORACLE_SID没有定义
输入
set ORACLE_SID=ORCL (ORCL是我的实例名,也是服务名)
没有问题,接着继续输入
emctl start dbconsole
提示
OC4J Configuration issue.D:oracleproduct10.2.0db_1/oc4j/j2ee/OC4J_DBConsole_192.168.1.84_orcl not found.
复制一份j2ee下的OC4J_DBConsole_TEST_orcl文件夹,重命名为OC4J_DBConsole_192.168.1.103_orcl,复制一份db_1下的TEST_orcl文件夹,重命名为192.168.1.84_orcl。
最后重新启动dbconsole,服务启动成功
以此方法的话在运行isqlplus之前必须启动监听,windows命令
cmd-->isqlplusctl start
<div style="color: #ffffff;">
页:
[1]