iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >Oracle Wallet初探
  • 670
分享到

Oracle Wallet初探

2024-04-02 19:04:59 670人浏览 八月长安
摘要

Oracle Wallet初探1.  什么是WalletA datastructure used to store and manage security credentials for

Oracle Wallet初探

1.  什么是Wallet

A datastructure used to store and manage security credentials for an individualentity.

oracle10gR2开始, 通过使用Oracle Wallet达到用户不使用密码登录数据库(非操作系统认证方式),这对于用脚本登录数据库进行操作来说是非常有用的;尤其对于企业安全要求很高,不希望用户名和密码明文存在配置文件中,而且对于密码的维护是极为方便的,比如我把wallet放在指定路径下,当修改密码时,只需统一覆盖wallet即可,对于有大量应用服务器尤为方便。

2.  Wallet的创建和管理

1.创建wallet

[oracle@daidai ~]$ mkdir -p/tmp/test_wallet

[oracle@daidai ~]$ mkstore-wrl /tmp/test_wallet –create

[oracle@daidai ~]$ cd /tmp/test_wallet/

[oracle@daidai test_wallet]$ ls

cwallet.sso  ewallet.p12

配置连接串tnsnames.ora

WALLET_OCP11G =

 (DESCRIPTioN =

   (ADDRESS = (PROTOCOL = tcp)(HOST = daidai.com)(PORT = 1522))

   (CONNECT_DATA =

     (SERVER = DEDICATED)

     (SERVICE_NAME = ocp11g)

    )

  )

配置sqlnet.ora

WALLET_LOCATION=(SOURCE=(METHOD=FILE)(METHOD_DATA=(DIRECTORY=/tmp/test_wallet)))

sqlNET.WALLET_OVERRIDE = TRUE

把登入数据库的用户认证信息添加到wallet

[oracle@daidai ~]$ mkstore --help

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

No wallet location specified.

mkstore [-wrl wrl] [-create] [-createSSO][-createLSSO] [-createALO] [-delete] [-deleteSSO] [-list] [-createEntry aliassecret] [-viewEntry alias] [-modifyEntry alias secret] [-deleteEntry alias] [-createCredential connect_string username passWord][-listCredential] [-modifyCredential connect_string username password][-deleteCredential connect_string] [-help] [-noloGo]

[oracle@daidai ~]$ mkstore-wrl /tmp/test_wallet -createCredential wallet_ocp11g daidai love8013

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

Enter wallet password:l         3

  

Create credential oracle.security.client.connect_string1

测试连接

至此,就可以使用wallet连接

[oracle@daidai ~]$ sqlplus/@wallet_ocp11g

 

SQL*Plus: Release 11.2.0.4.0 Production onTue Jun 14 14:47:49 2016

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

 

Connected to:

Oracle Database 11g Enterprise EditionRelease 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Miningand Real Application Testing options

 

SQL>

2.管理wallet

管理wallet同样适用mkstore命令

查看Credential

[oracle@daidai ~]$ mkstore-wrl /tmp/test_wallet -listCredential

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

Enter wallet password:love801   3

  

List credential (index: connect_stringusername)

1: wallet_ocp11g daidai

修改wallet中用户密码

[oracle@daidai ~]$ mkstore-wrl /tmp/test_wallet -modifyCredential wallet_ocp11g daidai love8014

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

Enter wallet password:love80    

  

Modify credential

Modify 1

[oracle@daidai ~]$ sqlplus @/wallet_ocp11g

 

SQL*Plus: Release 11.2.0.4.0 Production onTue Jun 14 14:58:35 2016

 

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

 

SP2-0310: unable to openfile "/wallet_ocp11g.sql"

Enter user-name: daidai

Enter password:--此处输入正确密码则进入,错误密码则不进入

删除wallet的用户认证信息

[oracle@daidai ~]$ mkstore -wrl/tmp/test_wallet -listCredential

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

Enter wallet password:lov   e8  

  

List credential (index: connect_stringusername)

1: wallet_ocp11g daidai

[oracle@daidai ~]$ mkstore-wrl /tmp/test_wallet -deleteCredential wallet_ocp11g

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

Enter wallet password: ove801   3

  

Delete credential

Delete 1

查看wallet详细认证信息

[oracle@daidai ~]$ mkstore-wrl /tmp/test_wallet -list

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

Enter wallet password:l  e8  013

  

Oracle Secret Store entries:

oracle.security.client.connect_string1

oracle.security.client.password1

oracle.security.client.username1

[oracle@daidai ~]$mkstore-wrl /tmp/test_wallet -viewEntry oracle.security.client.connect_string1

Oracle Secret Store Tool : Version11.2.0.4.0 - Production

Copyright (c) 2004, 2013, Oracle and/or itsaffiliates. All rights reserved.

 

Enter wallet password:lo   ve8  

  

oracle.security.client.connect_string1 =wallet_ocp11g

更改wallet里用户认证信息的内容

mkstore -wrl /tmp/test_wallet -modifyEntry oracle.security.client.password1skatepwd1

mkstore -wrl /tmp/test_wallet -modifyEntry oracle.security.client.username1skate1

3.  迁移linux wallet至window 7

  1. 按照linux中的样式修改tnsname.ora[IP & port]和sqlnet.ora[walletpath],注意测试连通性

  2. mkstore -wrl e:/test_wallet –create

  3. 拷贝出linux中wallet文件覆盖windows中的wallet文件

Oracle Wallet初探

windows迁移至linux,我没有测试。


您可能感兴趣的文档:

--结束END--

本文标题: Oracle Wallet初探

本文链接: https://www.lsjlt.com/news/43809.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Redis初探
       大概在2010年的时候,有一次和一个同事聊天,那个时候知道了Redis,对于技术的追随至今,还没有下载一个Redis版本玩玩,   只有1万多行代码,以性能惊人...
    99+
    2024-04-02
  • selenium 初探
    1 # -*- coding:utf-8 -*- 2 3 from selenium import webdriver 4 driver = webdriver.Firefox() # 打开firefox浏览器 5 driver.g...
    99+
    2023-01-30
    selenium
  • AS3初探
    开发工具:FLEX BUILDER3 PRO   语言:AS 3.0   操作系统:Windows XP SP2   1.       在flex3 里新建一个AS工程取名为lo...
    99+
    2023-01-31
  • Python 初探
     按照计划,今年要学习一门面向对象的语言,学习的范围锁定几门,PHP/PERL/PYTHON/RUBY,由于上半年学了bash,感觉python比较适合自己。从今天开始不定期的出一些笔记出来 #! /usr/bin/python   ID...
    99+
    2023-01-31
    Python
  • 1、python-初探
    语言包括编译型语言和解释型语言编译型:全部翻译,再执行;c、c++解释型:边执行边翻译;python、php、java、c#、perl、ruby、javascript 一、系统位数32位系统内存的最大寻址空间位2**32,4GB64位系统...
    99+
    2023-01-31
    python
  • ORM初探(一)
    Object Relational Mapping(ORM): 对象关系映射(Object Relational Mapping,简称ORM)模式是一种为了解决面向对象与关系数据库存在的互不匹配的现象的技术。 简单的说,ORM是通过使用描...
    99+
    2023-01-31
    ORM
  • python unittest初探
    待测试的类:class Request:    url = ""    method = ""    paras = {}    def __init__(self,url):        self.url = url        se...
    99+
    2023-01-31
    python unittest
  • Python Metaclass 初探
    先以一个大牛的一段关于Python Metapgramming的著名的话来做开头: Metaclasses are deeper magic than 99% of users should ever worry about. If yo...
    99+
    2023-01-31
    Python Metaclass
  • Javascript之JSBridge初探
    目录JSBridge 的起源JSBridge 的双向通信原理JS 调用 NativeNative 调用 JSJSBridge 的使用总结JSBridge 的起源 近些年,移动端普及化...
    99+
    2024-04-02
  • RN 技术探索:Hermes Engine 初探
    桔妹导读:自从 Google 的 Flutter 发布之后,Facebook 对 React-Native 的迭代开始快了起来,优化 React-Native 的性能表现,避免被 Flutter 比下去。最近一个比较大的动作是开源了一个 J...
    99+
    2023-06-03
  • Golang初探:探索之路开始
    【Golang简介:一切从这里开始】 Golang,也被称为Go语言,是一种由Google开发的开源编程语言。自2007年开始设计,2009年正式发布,Golang以其出色的性能、简洁...
    99+
    2024-02-24
    golang 简介 开始 go语言 网络编程 在线课程 垃圾回收器 golang开发 标准库
  • python之初探编程
        接触python语言完全是个偶然。那时候还在一所培训学校里学习网络和系统,和朋友一起去图书馆淘书,转遍了整个楼层,只是找到了一两本感兴趣的计算机方面的书,朋友选的很快,开始催我回去了,真是纠结,拿着借阅卡一次可以借5本,图书馆也挺远...
    99+
    2023-01-31
    python
  • 初探 Windows 7 M3 Buil
    通过 VPC 体验 Windows 7 M3By Windows 7 M3 Build 6801        前面我就从当前系统以升级方式来安装 Windows 7 M3 Build 6801.0.080913-2030(以下简称:Win...
    99+
    2023-01-31
    Windows Buil
  • 初探Oracle与SQL的区别:哪个更适合你?
    初探Oracle与SQL的区别:哪个更适合你? 在数据库管理系统中,Oracle和SQL是两种常见的关系型数据库。它们分别有各自的特点和优势,适用于不同的场景。本文将从各个方面比较Or...
    99+
    2024-03-08
    sql oracle 适合 sql语句
  • 初探Java之旅:探寻Java的奥秘
    ✨个人主页:全栈程序猿的CSDN博客 💨系列专栏:Java从入门到精通 ✌座右铭:编码如诗,Bug似流星,持续追求优雅的代码,解决问题如同星辰般自如 在计算机编程的世界中,有一门被誉为“千变万化”的编程语言——Jav...
    99+
    2023-12-23
    java
  • 初探OCFS2-配置服务
    初探OCFS2-配置服务2016/11/28目的:研究如何使用 iscsi 存储。 一、认识 据zstack的童鞋们介绍:OCFS2是主流对接 SAN 云存储的方式...
    99+
    2024-04-02
  • 初探Oracle存储过程和函数的不同之处
    初探Oracle存储过程和函数的不同之处 在Oracle数据库中,存储过程(Stored Procedure)和函数(Function)是数据库中常见的两种可重复利用的代码块。虽然它们...
    99+
    2024-03-03
    函数 oracle 存储过程 sql语句
  • 初探oVirt-体验sdk-python
    日期:2015/10/20 - 2015/12/8 time 16:09主机:n86目的:初探oVirt-体验sdk-python操作内容: 一、说明 使用sdk-python 通过pip安装 ovirt-engine-sdk-python...
    99+
    2023-01-31
    oVirt sdk python
  • java 反射机制初探
    最近再看书时,书中使用了java的动态代理机制,随即在网上搜了些文章看了一下,既然有动态代理那就有静态代理,所谓静态代理,就是在你些的代理类中需要使用到具体的被代理类。而所谓动态代理,则不需要在代理类中使用到被代理类,根本不知道起要代理那个...
    99+
    2023-06-03
  • ORA-28354: Encryption wallet, auto login wallet, or HSM is already open ORACLE 报错 故障修复 远程处理
    文档解释 ORA-28354: Encryption wallet, auto login wallet, or HSM is already open Cause: Encryption wallet, auto login wallet...
    99+
    2023-11-05
    报错 故障 Encryption
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作