安装Oracle中缺省的SYSDBA密码是
用户:scott   
密码:tiger

1 创建数据库
连入SQL*Plus,以system/manager用户登录  
      SQL>   conn   system/manager  
   
      创建新的用户:如user1/pass1,赋予connect,resource权限。  
      SQL>   grant   connect,resource   to   user1   identified   by   pass1;  
   
      SQL>   conn   user1/pass1  
      SQL>   create   table   test(a   number,b   char(19));  
      SQL>   insert   into   test   values(1,to_char(sysdate,'yyyy-mm-dd   hh24:mi:ss'));  
      SQL>   insert   into   test   values(2,to_char(sysdate,'yyyy-mm-dd   hh24:mi:ss'));  
      SQL>   insert   into   test   values(3,to_char(sysdate,'yyyy-mm-dd   hh24:mi:ss'));  
      SQL>   insert   into   test   values(4,to_char(sysdate,'yyyy-mm-dd   hh24:mi:ss'));  
      SQL>   insert   into   test   values(5,to_char(sysdate,'yyyy-mm-dd   hh24:mi:ss'));  
      SQL>   commit;  
   
      SQL>   select   *   from   test;  
   
                         A   B  
      ----------   -------------------  
                         1   2000-11-28   20:27:33  
                         2   2000-11-28   20:27:36  
                         3   2000-11-28   20:27:38  
                         4   2000-11-28   20:27:40  
                         5   2000-11-28   20:27:52  

 

 

当Oracle 9.2运行在NTFS的分区上时,对于某些非administrator组的用户,ORACLE_HOME 目录是不可见的,而在windows server 2003下asp.net应用使用的帐户是netword service,因此无法创建oracle连接,只要重设一下ORACLE_HOME目录的权限就可以了。步骤如下:
1、以管理员的用户登录;
2、找到ORACLE_HOME文件夹(我的是C:\oracle\ora92),点右键,选属性--安全,在组或用户栏中选“Authenticated Users”,在下面权限列表中把“读取和运行”的权限去掉,再按应用;重新选上“读取和运行”权限,点击应用;选权限框下面的“高级”按钮,确认“Authenticated Users”后面的应用于是“该文件夹、子文件夹及文件”,按确定把权限的更改应用于该文件夹;
3、重新启动计算机,让权限设置生效(请注意,这一步很重要);
4、登录后运行asp.net应用,正常取得Oracle数据库的数据。