Oracle10与以前的版本有很大的不同,配置工具是在WEB页面上,感觉不是很舒服,有的时候提示不出网址来。不知道是怎么原因?所以就找不到配置页面。以前我用的都是SQLSERVER,没办法用PLSQL代码处理。首先Net Configuration Assistant配置监听器接着用Database Configuration Assistant创建数据库选择前面创建的监听器如果不出错就会在最后一步提示一个URL管理网址,要是配置有问题的话,数据库虽然创建成功能可没生成管理WEB页那就用PLSQL吧。打开PLSQL创建表空间:用SYS用户登陆。create tablespace “表空间名称” //name
datafile 'D:/oracle/product/10.2.0/oradata/orcl/MOF_TEMP.dbf' size 1000M 
autoextend on next 100M maxsize unlimited   //自动扩展表空间  创建用户,设置DBA角色
CREATE USER testuser //testuser用户名
IDENTIFIED BY 123456  //123456密码
DEFAULT TABLESPACE USERS //默认空间管理USERS空间用户
TEMPORARY TABLESPACE TEMP;//监时空间 grant connect to testuser;//用户授权限连接登陆权限
grant dba to testuser; //授于DBA管理权限
grant sysdba to testuser;//授于系统DBA权限 //删除用户
drop user testuser cascade;删除用户 然后导入表imp testuser/123456@ORA10 full=y  file=F:/tempdatadmp/xxxx.dmp 有的时候要加fromuser touser选项,这个还不清楚为什么有的要加,有时不加也能导入。在PLSQL有专门可视化导入窗口。 这样就很方便的建立数据库了。 PLSQL查看表空间语法如下(执行时间可能有点长):select f.tablespace_name,a.total,u.used,f.free,round((u.used/a.total)*100) "% used",   
round((f.free/a.total)*100) "% Free"    
from   
(select tablespace_name, sum(bytes/(1024*1024)) total    
       from dba_data_files group by tablespace_name) a,   
(select tablespace_name, round(sum(bytes/(1024*1024))) used    
       from dba_extents group by tablespace_name) u,   
(select tablespace_name, round(sum(bytes/(1024*1024))) free    
       from dba_free_space group by tablespace_name) f   
WHERE a.tablespace_name = f.tablespace_name   
and a.tablespace_name = u.tablespace_name;  
以下为我作的一点小广告,主要是推广下本人的公司网站。全国十强虚拟主机供应商以及快速自助建站,如果觉得文章的无私供献,请给我点下拉下流量。
耐思尼克
http://www.iisp.com/design/?s=macui