oracle 创建用户有授权

    技术2022-05-19  58

    //创建临时表空间      create temporary tablespace zzbm_temp    tempfile 'd:/oracle/oradata/zzbm/zzbm_temp01.dbf'    size 500m    autoextend on    next 200m maxsize 2048m    extent management local;      //创建数据表空间    create tablespace zzbm_data    logging    datafile 'd:/oracle/oradata/zzbm/zzbm_data01.dbf'    size 1024m    autoextend on    next 500m maxsize 4096m    extent management local;      //创建用户并指定表空间    create user username identified by password    default tablespace zzbm_data    temporary tablespace zzbm_temp;      //给用户授予权限      grant connect,resource to username;        //超级管理员登陆   sqlplus /nolog   conn / as sysdba       Oracle10g启动的时候,会同时启动一个叫XDB的服务,很讨厌的是,它会占用掉系统的 8080 和 21端口,所以我们需要修改这两个端口的配置。打开sqlplus     输入用户名 SYSTEM及其帐号,然后分别输入以下三条命令:     sql> call dbms_xdb.cfg_update(updateXML(   dbms_xdb.cfg_get()   , '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()'  , 8081));       sql> call dbms_xdb.cfg_update(updateXML(   dbms_xdb.cfg_get()   , '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()'  , 2111));     sql> EXEC dbms_xdb.cfg_refresh;  

    最新回复(0)