必须通过dba(系统管理员)权限才能导入文件:先登录dba权限后;执行语句“grant dba to username”;
imp username/password@sid file="c:\xx.dmp" full=y
---------------
Oracle10g修改system用户的密码
2011-09-08 09:54阅读:1,519
现在的公司要使用Oracle数据库了,之前学过的Oracle差不多都还给课本了。装了个Oracle10g,设置密码时偷懒设了两个空格(我的开机密码-- ^_^),用pl/sql连接却报错说用户名或密码无效,彻底傻了,因为用sql plus等工具连接不能包含空格和引号(有人是这么说的)。
不过也不要紧,这个问题很好解决:
1、打开cmd或者其他console
输入: sqlplus '/as sysdba' (注意参数要加引号)
呵呵这样就以sysdba的身份进来了,接下来就可使用DCL(Data Control Language)语句了
2、修改密码。解锁用户。
alter user system indentified by manager;
// 将system的密码改为manager
alter user system account unlock;
用system重新连接试试~~~
oracle 12641
SQLNET.AUTHENTICATION_SERVICES = (BEQ,NONE),本地机器上就可以sys/admin@mytest_pri as sysdba这样连接了
1. 运行cmd命令行
2. D:/oracle/ora92/bin>sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on 星期四 8月 16 11:32:22 2007
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
3. SQL> conn /as sysdba
已连接。
4. SQL> alter user system identified by password;
用户已更改。
最初Oracle数据库装在HP-Unix上的,后来为了测试移植到Windows平台上,测试其他各项都没有问题,后来发现一个asp.net写的程序无法访问,报错提示ORA-12641: 验证服务无法初始化,排除了.net用户权限问题之后,解决办法如下:将sqlnet.ora文件中的SQLNET.AUTHENTICATION_SERVICES=(TNS)修改为SQLNET.AUTHENTICATION_SERVICES=(NONE),然后再连接即可连接成功,sqlnet.ora文件位置在:\oracle\ora92\network\ADMIN 中(不同版本oracle可能不同)。
试过可以。
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
#SQLNET.AUTHENTICATION_SERVICES=(ALL)
SQLNET.AUTHENTICATION_SERVICES=(NONE)
------------------------------------------------
Oracle中关于该参数的解释:
SQLNET.AUTHENTICATION_SERVICES
Purpose
Use the parameter SQLNET.AUTHENTICATION_SERVICES to enable one or more authentication services. If authentication has been installed, it is recommended that this parameter be set to either none or to one of the authentication methods.
Default None
Values Authentication Methods Available with Oracle Net Services:
* none for no authentication methods. A valid username and password can be used to access the database. * all for all authentication methods * nts for Windows NT native authentication
Windows NT native authentication
An authentication method that enables a client single login access to a Windows NT server and a database running on the server.
An authentication method that enables a client single login access to a Windows NT server and a database running on the server.
从oracle的解释可以知道,SQLNET.AUTHENTICATION_SERVICES=(NTS)是WINDOWS系统专用的,对linux/UNIX是不适用的。个人猜测NTS应该指NT Server.
测试: 设置SQLNET.AUTHENTICATION_SERVICES=(ALL) 时
C:Documents and SettingsAdministrator>sqlplus /nolog
SQL*Plus: Release 10.1.0.2.0 - Production on 星期四 7月 23 15:33:18 2009
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL> connect / as sysdba; ERROR: ORA-12641: 验证服务无法初始化
一个简单的总结: 1、在windows下,SQLNET.AUTHENTICATION_SERVICES必须设置为NTS或者ALL(10.2版本好像可以,未测试,10.1 版本设置为ALL无法通过OS认证,显示ORA-12641: 验证服务无法初始化)才能使用OS认证;不设置或者设置为其他任何值(包括NONE)都不能使用OS认证。
2、在linux下,在SQLNET.AUTHENTICATION_SERVICES的值设置为ALL,或者不设置的情况下,OS验证才能成功;设置为其他任何值都不能使用OS认证。
oracle 用户权限 imp
最新推荐文章于 2023-06-14 11:44:21 发布