Create tablespaces and users in ORACLE10g, and authorize scripts

--Create tablespaces and users in ORACLE10g, and the authorization script is as follows:


/*Step 1: Create a temporary tablespace */
create temporary tablespace tangkuo_temp
tempfile 'D:\Program Files\SQL\tangkuo_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;

/*Step 1: Create data tablespace*/
create tablespace tangkuo_data
logging
datafile 'D:\Program Files\SQL\tangkuo_data.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;

/*Step 2: Create user and specify tablespace*/
create user tangkuo identified by tangkuo
default tablespace tangkuo_data
temporary tablespace tangkuo_temp;

/*Step 3: Grant permission to user*/
grant connect,resource,dba to tangkuo; --The







above script creates zero-hour tablespace: tangkuo_temp; data tablespace: tangkuo_data; creates user tangkuo, password is tangkuo; grants user tangkuo the role of database operation.

--The above script can be executed in the pl/sql client, log in as dba using the sys account, and execute the above script.
--It can also be executed in the named line:
--1. Start menu->Run, enter sqlplus /nolog to open the sqlplus.exe tool, this tool is only available on the server with the oracle system installed.
--2. Run the conn / as sysdba command to change to the administrator role.
--3. Execute the above command.



-------------The method of modifying the default port is as

follows-- 1. Log in as a sys administrator, and use dbms_xdb to modify the port settings

--Change the HTTP/WEBDAV port from 8080 to 8081 has been modified to 8081
call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(),'/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081))


-- Change the FTP port from 2100 to 2111 port, if there is a conflict, execute the modification.
call dbms_xdb.cfg_update(updateXML( dbms_xdb.cfg_get(),'/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text()',2111))



Call completed.

COMMIT;

EXEC dbms_xdb.cfg_refresh;


  PL/SQL procedure successfully completed.

2. Execute services.msc, enter the service, and restart several services related to the Oracle database.

3. Modify the value of the Get_Started shortcut under D:\oraclexe\app\oracle\product\11.2.0\server to http:/ /127.0.0.1:8081/apex/f?p=4950, just revisit


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326407864&siteId=291194637