This commit is contained in:
halliday 2024-01-11 10:44:59 +08:00
parent def13c8188
commit 4c801a9106
3 changed files with 6 additions and 4 deletions

View File

@ -357,9 +357,9 @@ Oraclephysics_pwd = '123456'
Oraclephysics_root_user= 'root'
#oracle_ physics12c备份与恢复
DBHostIP_lin_12c = '10.18.32.162'
DBUser_12c = 'system' #oracle数据库用户名
DBPwd_12c = '111111' #oracle数据库密码
DBHostIP_lin_12c = '10.10.29.144'
DBUser_12c = 'test' #oracle数据库用户名
DBPwd_12c = 'test123' #oracle数据库密码
DBInstance_lin_12c = DBHostIP_lin_12c+':1521/orcl'
Oracle_HostName_lin_12c = 'oracle12c_physics'
Oracle_Instance_lin_12c = 'orcl'

View File

@ -425,7 +425,7 @@ Oracle归档日志备份
...
... 变量: ${Oracle_TableName1}表名 | ${DBInstance_lin} 实例名
log 连接数据库
Connect To Database Using Custom Params cx_Oracle '${DBUser_12c}','${DBPwd_12c}','${DBInstance_lin}'
Connect To Database Using Custom Params cx_Oracle 'c##unary','111','${DBInstance_lin}'
${rowcount} Row Count select * from user_tables where table_name=upper('${Oracle_TableName1}')
Run Keyword If ${rowcount} >= 1 Execute Sql String drop table ${Oracle_TableName1}
Disconnect From Database

View File

@ -5,6 +5,8 @@ Variables ../../../../../../../Config/DPM/DPM_config.py
*** Test Cases ***
00_TEST
创建Oracle数据表_12c ${Oracle_TableName1} ${DBInstance_lin_12c}
01_Oracle完全备份与恢复-挂载-非加密压缩重删
[Documentation] 1.创建Oracle数据表