下载安装包:
Oracle官网下载oracle12c安装包,解压软件:
一、创建用户和组
二、创建安装目录并授权:
三、修改内核参数:
四、配置oracle环境变量
五、安装依赖包:
六、安装oracle:
// 如果你能直接设置DISPLAY调出安装窗口可以使用以下方式:
以下是安装步骤:
安装过程中提示:以root用户顺序执行以下脚本:
七、创建监听和实例:
一直next,finish即可完成。
配置DB
八、创建表空间和用户并授权:
// (SYSDBA/SYS超级用户的密码统一为:Oracle@hj123)
create tablespace BIEEOCRL_DATA datafile '/data/oracle/app/oracle/oradata/bieeocrl/bieeocrl_data01.dbf' size 4G;
create user hyuser identified by zZdtgI5Y default tablespace BIEEOCRL_DATA quota unlimited on BIEEOCRL_DATA;
grant create session to hyuser;
grant select any dictionary to hyuser;
grant create table to hyuser;
grant create procedure to hyuser;
grant create synonym to hyuser;
grant create view to hyuser;
grant create sequence to hyuser;
grant select any sequence to hyuser;
grant debug any procedure to hyuser;
grant execute any procedure to hyuser;
grant debug connect session to hyuser;
grant select any table to hyuser;
grant unlimited tablespace to hyuser;
grant alter any snapshot to hyuser;
grant dba to hyuser;
grant sysdba to hyuser;
grant all privileges to hyuser;
九、配置PL/SQL连接ORACLE12c:
在PL/SQL客户端的tnsnames.ora文件中添加以下连接串
BIEEOCRL=
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 221.228.110.170)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = BIEEOCRL)
)
)
重启PL/SQL客户端即可。
问题排查::
处理:
登录sql终端:
修改会话游标数:
查询游标数:
完
声明:文中观点不代表本站立场。本文传送门:https://eyangzhen.com/235162.html