Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luckfu committed Jun 29, 2022
1 parent 45389e8 commit 05c2cef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<span>|
<i class="fa fa-file-word-o fa-fw"></i>
<span class=post-meta-item-text>字数:</span>
<span class=leancloud-world-count>353</span></span>
<span class=leancloud-world-count>351</span></span>
<span>|
<i class="fa fa-eye fa-fw"></i>
<span class=post-meta-item-text>阅读:</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
<span>|
<i class="fa fa-file-word-o fa-fw"></i>
<span class=post-meta-item-text>字数:</span>
<span class=leancloud-world-count>353</span></span>
<span class=leancloud-world-count>351</span></span>
<span>|
<i class="fa fa-eye fa-fw"></i>
<span class=post-meta-item-text>阅读:</span>
<span class=leancloud-view-count>1分钟</span></span>
<span id=/post/2022-06-29_dbeaver_to_oraclefree_cloud_with_wallet/ class=leancloud_visitors data-flag-title="DBeaver 通过 wallet 连接 Oracle Free Cloud">|
<i class="fa fa-binoculars fa-fw"></i>
<span class=post-meta-item-text>阅读次数:</span>
<span class=leancloud-visitors-count></span></span></div></header><div class=post-body itemprop=articleBody><p>Oracle Cloud的免费套餐很香,DBeaver通过wallet连接oracle数据库有些细节设置需要注意,下面说明详细配置步骤。</p><p><img src=/post/images/2022-06-29/dbeaver.png alt=dbeaver></p><h1 id=一下载证书钱包>一、下载证书钱包</h1><p>oracle cloud 仪表盘中,找到数据库实例</p><p><img src=/post/images/2022-06-29/instance.png alt=数据库实例></p><p>单击 DB 连接按钮。点击下载 客户端身份证明 wallet 按钮</p><p><img src=/post/images/2022-06-29/downloadwallet.png alt=下载wallet></p><p>设置wallet 密码</p><blockquote><p>这里的密码并不是数据库密码,是ssl的证书密码</p></blockquote><p><img src=/post/images/2022-06-29/walletpasswd.png alt=设置密码></p><h1 id=二配置dbeaver的oracle连接>二、配置DBeaver的Oracle连接</h1><p>在 DBeaver 中安装驱动程序后,创建一个新的数据库连接。单击带有加号的插头并选择 oracle</p><p><img src=/post/images/2022-06-29/driver.png alt=选择驱动></p><p>选择tns选项卡</p><p>还需要导入 Oracle 的密钥文件,这是能否正常连接的关键。点击“驱动属性”选项卡,您应该会看到以表格形式显示的总参数列表,向下滚动大约 1 页,您将看到需要设置的参数,它们是 :</p><ul><li>javax.net.ssl.keyStore</li><li>avax.net.ssl.keyStorePassword</li><li>javax.net.ssl.trustStore</li><li>java.net.ssl.trustStorePassword</li></ul><p>![ssl keyStore](/post/images/2022-06-29/ssl.png</p><p>填写wallet路径下的truststore.jks。密码是 oracle wallet时设置的密码</p><p>测试连接&mldr;&mldr;</p></div><footer class=post-footer><div class=post-tags><a href=/tags/oracle-cloud rel=tag title="Oracle Cloud">#Oracle Cloud#</a>
<span class=leancloud-visitors-count></span></span></div></header><div class=post-body itemprop=articleBody><p>Oracle Cloud的免费套餐很香,DBeaver通过wallet连接oracle数据库有些细节设置需要注意,下面说明详细配置步骤。</p><p><img src=/post/images/2022-06-29/dbeaver.png alt=dbeaver></p><h1 id=一下载证书钱包>一、下载证书钱包</h1><p>oracle cloud 仪表盘中,找到数据库实例</p><p><img src=/post/images/2022-06-29/instance.png alt=数据库实例></p><p>单击 DB 连接按钮。点击下载 客户端身份证明 wallet 按钮</p><p><img src=/post/images/2022-06-29/downloadwallet.png alt=下载wallet></p><p>设置wallet 密码</p><blockquote><p>这里的密码并不是数据库密码,是ssl的证书密码</p></blockquote><p><img src=/post/images/2022-06-29/walletpasswd.png alt=设置密码></p><h1 id=二配置dbeaver的oracle连接>二、配置DBeaver的Oracle连接</h1><p>在 DBeaver 中安装驱动程序后,创建一个新的数据库连接。单击带有加号的插头并选择 oracle</p><p><img src=/post/images/2022-06-29/driver.png alt=选择驱动></p><p>选择tns选项卡</p><p><img src=/post/images/2022-06-29/tns.png alt=tns></p><p>还需要导入 Oracle 的密钥文件,这是能否正常连接的关键。点击“驱动属性”选项卡,您应该会看到以表格形式显示的总参数列表,向下滚动大约 1 页,您将看到需要设置的参数,它们是 :</p><ul><li>javax.net.ssl.keyStore</li><li>avax.net.ssl.keyStorePassword</li><li>javax.net.ssl.trustStore</li><li>java.net.ssl.trustStorePassword</li></ul><p><img src=/post/images/2022-06-29/ssl.png alt="ssl keyStore"></p><p>填写wallet路径下的truststore.jks。密码是 oracle wallet时设置的密码</p><p>测试连接&mldr;&mldr;</p></div><footer class=post-footer><div class=post-tags><a href=/tags/oracle-cloud rel=tag title="Oracle Cloud">#Oracle Cloud#</a>
<a href=/tags/free-vps rel=tag title="Free VPS">#Free VPS#</a>
<a href=/tags/oracle rel=tag title=Oracle>#Oracle#</a>
<a href=/tags/vm.standard.a1.flex rel=tag title=VM.Standard.A1.Flex>#VM.Standard.A1.Flex#</a></div><div class=addthis_inline_share_toolbox></div><div class=post-nav><div class=article-copyright><div class=article-copyright-img></div><div class=article-copyright-info><p><span>声明:</span>DBeaver 通过 wallet 连接 Oracle Free Cloud</p><p><span>链接:</span>http://www.luckfu.com/post/2022-06-29_dbeaver_to_oraclefree_cloud_with_wallet/</p><p><span>作者:</span>luckfu</p><p><span>声明: </span>本博客文章除特别声明外,均采用 <a href=https://creativecommons.org/licenses/by-nc-sa/3.0/ target=_blank style=text-decoration:underline>CC BY-NC-SA 3.0</a>许可协议,转载请注明出处!</p></div></div><div class=clear></div></div><div class=reward-qr-info><div>创作实属不易,如有帮助,那就打赏博主些许茶钱吧 ^_^</div><button id=rewardButton disable=enable onclick='var qr=document.getElementById("QR");qr.style.display==="none"?qr.style.display="block":qr.style.display="none"'>
Expand Down
3 changes: 1 addition & 2 deletions searchindex.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
二、配置DBeaver的Oracle连接 在 DBeaver 中安装驱动程序后,创建一个新的数据库连接。单击带有加号的插头并选择 oracle
选择tns选项卡
还需要导入 Oracle 的密钥文件,这是能否正常连接的关键。点击“驱动属性”选项卡,您应该会看到以表格形式显示的总参数列表,向下滚动大约 1 页,您将看到需要设置的参数,它们是 :
javax.net.ssl.keyStore avax.net.ssl.keyStorePassword javax.net.ssl.trustStore java.net.ssl.trustStorePassword ![ssl keyStore](/post/images/2022-06-29/ssl.png
填写wallet路径下的truststore.jks。密码是 oracle wallet时设置的密码
javax.net.ssl.keyStore avax.net.ssl.keyStorePassword javax.net.ssl.trustStore java.net.ssl.trustStorePassword 填写wallet路径下的truststore.jks。密码是 oracle wallet时设置的密码
测试连接&hellip;&hellip;</content></entry><entry><title>python 快速判断字符串是否包含中文</title><url>http://www.luckfu.com/post/2022-06-21_str_contain_chinese/</url><categories><category>python</category></categories><tags><tag>python</tag></tags><content type="html"> 事情是这样的,最近优化一个数据导出程序,数据库是UTF-8,要求导出文件编码为GBK,在python中,传统的写法:
xxx.decode('utf-8').encode('gbk','ignore') 但decode和encode在一个几千万行的文件导出时,耗时太长,粗略测试不做decode的导出,至少性能提高三倍,可这时会有新的问题出现,假如数据中有中文或别的编码文字,编码会出错。
我的思路是检查一下字符串,如果包含中文就进行encode,如果没有中文则直接写入,以此优化程序性能。
Expand Down

0 comments on commit 05c2cef

Please sign in to comment.