远程连接oracle01017,sqlplus远程sys用户登录ora 01017的解决方法[通俗易懂]

远程连接oracle01017,sqlplus远程sys用户登录ora 01017的解决方法[通俗易懂]UsingORAPWDWhenyouinvokethispasswordfilecreationutilitywithoutsupplyinganyparameters,youreceiveamessageindicatingtheproperuseofthecommandasshowninthefollowingsampleoutput…

大家好,又见面了,我是你们的朋友全栈君。

Using ORAPWD

When you invoke this password file creation utility without supplying any parameters, you receive a message indicating the proper use of the command as shown in the following sample output:

> orapwd

Usage: orapwd file=password=entries=force=where

file – name of password file (mand),

password – password for SYS (mand),

entries – maximum number of distinct DBAs and OPERs (opt),

force – whether to overwrite existing file (opt)

There are no spaces around the equal-to (=) character.

The following command creates a password file named acct.pwd that allows up to 30 privileged users with different passwords. In this example, the file is initially created with the password secret for users connecting as SYS.

orapwd FILE=acct.pwd PASSWORD=secret ENTRIES=30

The parameters in the ORAPWD utility are described in the sections that follow.

FILE

This parameter sets the name of the password file being created. You must specify the full path name for the file. The contents of this file are encrypted, and the file cannot be read directly. This parameter is mandatory.

The types of filenames allowed for the password file are operating system specific. Some operating systems require the password file to adhere to a specific format and be located in a specific directory. Other operating systems allow the use of environment variables to specify the name and location of the password file. For name and location information for the Unix and Linux operating systems, see Administrator’s Reference for UNIX-Based Operating Systems. For Windows, see Platform Guide for Microsoft Windows. For other operating systems, see your operating system documentation.

If you are running multiple instances of Oracle Database using Oracle Real Application Clusters, the environment variable for each instance should point to the same password file.

Caution:

It is critically important to the security of your system that you protect your password file and the environment variables that identify the location of the password file. Any user with access to these could potentially compromise the security of the connection.

PASSWORD

This parameter sets the password for user SYS. If you issue the ALTER USER statement to change the password for SYS after connecting to the database, both the password stored in the data dictionary and the password stored in the password file are updated. This parameter is mandatory.

Note:

You cannot change the password for SYS if REMOTE_LOGIN_PASSWORDFILE is set to SHARED. An error message is issued if you attempt to do so.

ENTRIES

This parameter specifies the number of entries that you require the password file to accept. This number corresponds to the number of distinct users allowed to connect to the database as SYSDBA or SYSOPER. The actual number of allowable entries can be higher than the number of users, because the ORAPWD utility continues to assign password entries until an operating system block is filled. For example, if your operating system block size is 512 bytes, it holds four password entries. The number of password entries allocated is always a multiple of four.

Entries can be reused as users are added to and removed from the password file. If you intend to specify REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE, and to allow the granting of SYSDBA and SYSOPER privileges to users, this parameter is required.

Caution:

When you exceed the allocated number of password entries, you must create a new password file. To avoid this necessity, allocate a number of entries that is larger than you think you will ever need.

FORCE

This parameter, if set to Y, enables you to overwrite an existing password file. An error is returned if a password file of the same name already exists and this parameter is omitted or set to N.

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/138037.html原文链接:https://javaforall.net

(0)
上一篇 2022年6月1日 上午7:36
下一篇 2022年6月1日 上午7:46


相关推荐

  • VirtualBox下安装ubuntu server 16.04

    VirtualBox下安装ubuntu server 16.04

    2021年10月28日
    49
  • java文件上传总结[通俗易懂]

    java文件上传总结[通俗易懂]前言文件上传是各类应用中经常碰到的需求,不管是上传图片、文件、音频、视频等,或者其他类型的文件,都是后端需要解决的,采用什么样的方式进行上传,或者对上传后的文件如何进行存储,甚至如何更加高效的上传文件等问题,都是在实际开发中需要解决的,本文将对常用的文件上传使用进行一下简单的小结以springboot为例,下面我们就开始撸码吧,开工前我们还是做一下简单的准备吧,本文的演示demo框架为springboot2.2.1版本,只需简单引入一个下面的依赖即可,其他需要用到的,我们增量添加即可 <de

    2022年5月15日
    38
  • aix dump_coredump文件分析

    aix dump_coredump文件分析Usingthedumpextractor,jextractTousethefullfacilitiesofthedumpviewer,youmustfirstrunthe jextract toolonthesystemdump.The jextract toolobtainsplatform-specificinformatio…

    2026年4月15日
    7
  • MPU6050-DMP方式角度读取

    MPU6050-DMP方式角度读取让自己别忘了大学里学的东西 那么就把它记录下下来 效率会比忘记然后重新再去找资料再重头学高的多一开始自己死命的去网上找现成的代码 但是发现大多都是打着 dmp 的幌子 给的是得出原始数据的代码 或者确实是 dmp 的代码 但是太复杂 自己看不懂 所以果断放弃 直接去网上找 dmp 移植的教程 结果文字教材也是差不多的效果 不过忽然在百度上发现了一个视频教材 与非网 上的 小马哥 STM32 课程系列直播

    2026年3月19日
    1
  • 计算机视觉 图像形成 镜头畸变

    计算机视觉 图像形成 镜头畸变成像模型都假设相机遵循线性投影模型 其中世界中的直线即图像中的直线 这是将线性矩阵运算应用于齐次坐标的自然结果 不幸的是 许多广角镜头具有明显的径向畸变 这表现为直线投影中的可见曲率 有关镜头光学和色差 除非考虑到这种失真 否则不可能创建高度准确的照片级逼真重建 例如 在未考虑径向失真的情况下构建的图像马赛克通常会由于像素混合之前相应特征的配准错误而表现出模糊 幸运的是 在实践中补偿径向失真并不是那么困难 对于大多数镜头 一个简单的四次失真模型可以产生良好的效果 令为透视分割后但

    2026年3月17日
    2
  • Fragstats4.2.1入门心得

    Fragstats4.2.1入门心得这里是地理时政志 一个聚焦于地理空间和时政的公众平台 由于本人水平有限 分享内容若有纰漏 烦请批评指正 笔者不胜感激 这两天因为项目做数据需要 用到了 fragstast 4 2 1 版本 从开始的一头雾水 到现在的基本入门 还有很多功能 指标没有搞明白 或者说是知其然不知其所以然 来分享一下自己的学习过程 网上关于 fragstast 的教程质量良莠不齐 网上虽不乏讲述得非常详细者 多来源于 CSDN 和新浪博客 对没错 是博客 可能是大牛们都是上了一定年纪的人 还喜欢玩博客 但总体来说我自己并没有在网

    2026年3月19日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号