一种是为表空间增加数据文件,以下SQL语句请在数据库管理员sysman用户下执行: create tablespace lzs datafile ‘d:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\lzs.dbf‘ size 2048M; create tablespace lzs_doc datafile ‘d:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\lzs_doc.dbf‘ size 512M;
增加ORACLE SGA内存:(这步可以忽略) SQL> alter system set sga_garget = 800*1024*1024 scope = BOTH; (/*800M*/)
建立用户,默认表空间为USERS,以下SQL语句请在数据库管理员sysman用户下执行; CREATE USER "LZS" IDENTIFIED BY "LZS" DEFAULT TABLESPACE "USERS" --TEMPORARY TABLESPACE "TEMP" PROFILE DEFAULT ACCOUNT UNLOCK; GRANT "CONNECT" TO "LZS"; GRANT "RESOURCE" TO "LZS"; GRANT UNLIMITED TABLESPACE TO "LZS"; ALTER USER "LZS" DEFAULT ROLE ALL; GRANT "DBA" TO "LZS";
时间: 2024-10-11 10:05:15