Louis Liu

Louis Liu

Head of Data & AI Innovation @ Ping An Good Doctor

AI models / AI Infra / Bigdata

Secure External Password Store using wallet

Oracle Wallet的使用

最近看到一封邮件,该网友提出了如下需求:

This is not exactly an Oracle question, but I am asking it here in case
someone has solved this. We have alot of jobs that log into our Oracle
databases. Some of them use ops$oracle accounts. In the future we are not
allowed to use ops$oracle and need[……]

Read more

Configuring Temporary Tablespaces for RAC Databases for Optimal Performance

Configuring Temporary Tablespaces for RAC Databases for Optimal Performance
Modified 04-AUG-2010 Type BULLETIN Status ARCHIVED
In this Document
Purpose
Scope and Application
Configuring Temporary Tablespaces for RAC Databases for Optimal Performance
References

Applies t[……]

Read more

Oracle 坏块处理(final)

收到开发人员报告,oracle出现坏块,信息如下:

Hex dump of (file 7, block 1407500) in trace file /data/oracle/admin/orcl/bdump/orcl_p004_7383.trc
Corrupt block relative dba: 0x01d57a0c (file 7, block 1407500)
Fractured block found during crash/instance recovery
Data in bad block:
type: 6 format: 2 rdba: 0x01d57a0[……]

Read more

Logic standby delay when query with for update clause

今天遇到一个奇怪的问题,3个logic standby 中有一个delay 查看任何日志都没有发现错误,有一个transaction在apply一个SQL,这条SQL没有任何问题,SQL所涉及到的表也没有任何问题
当时的apply情况如下:

SID USERNAME MACHINE EVENT PARAM W WT SQL ST LT LOGON_TIME
—— ———- —[……]

Read more

Oracle 9i 单节点文件系统 升级到 10g RAC

最近做了一次Oracle 9i 升级到10g RAC 的测试,现做如下简要记录:
1.查看目前数据库版本

SQL> select * from v$version;

BANNER
—————————————————————-
Oracle9i Enterprise Edition Release 9.2.0.4.0 – Production
PL/SQL Release 9.2.0.4.0 – Production
CORE 9.2.0.3.0 Production[……]

Read more

10g Flashback Version Query & Flashback Transaction Query

Flashback Version Query:
—————————-

Using undo data stored in the database, one can now view the changes to one or more rows along with all the metadata of the changes. Flashback version query allows the versions of a specific row to be tracked during a window of time using the[……]

Read more

Script: search datafile segments in order For resizing datafiles

下面脚本可以检测datafile 中创建segment的次序,以利于以后move object 进而resize datafile大小之用

block_id * 8代表 blocksize=8092

SQL>SET ECHO off FEEDBACK off HEADING on NUMWIDTH 10
SQL>DEFINE TABLESPACE=’&1′;
SQL>DEFINE FILE_ID=&2;

———————————
DECLARE
v_prior_file_name VARCHAR2(513);[……]

Read more

Oracle 登录方式以及验证

数据库用sysdba登录的验证有两种方式,一种是通过os认证,一种是通过密码文件验证;登录方式有两种,一种是在数据库主机直接登录(用os认证的方式),一种是通过网络远程登录;需要设置的参数有两个,一个是SQLNET.AUTHENTICATION_SERVICES,一个是REMOTE_LOGIN_PASSWORDFILE。

os认证:如果启用了os认证,以sysdba登录,那么我们只要用oracle软件的安装用户就能登录:sqlplus “/ as sysdba”。如果我们要禁用os认证,只利用密码文件登录,我们首先要有一个密码文件:

D:\oracle\ora92\database[……]

Read more

Scroll to Top