oracle weblogic v10.3 configure JNDI
Step 1: log on admin portal
Step 2: select menu 'Services' - 'JDBC' - 'Data Source' and click New button to create a new data source
Step 3 : specify jndi name ad database
Step 4 : click Next button to set transaction properties
Step 5 : define connection properties
Step 6 : test database connection
Step 7 : select target and click finish
It is possible that config.xml can not be updated beause the access is denied when you click finish button.
If such, right click the config.xml and select menu 'Properties' - tab 'Secuirty ' to grant permission
Befor testing the jndi, expand the 'Advanced' panel in the bottom of this page and ensure property
'Test Connection On Reserve' is enabled.
go to tab 'Monitoring' - sub tab 'Testing' to test jndi
相关文档:
如何解决ORA-00054资源正忙,要求指定NOWAIT?
查阅错误代码指南后有如下提示:
ORA-00054 resource busy and acquire with NOWAIT specified
Cause: The NOWAIT keyword forced a return to the command prompt because a resource was unavailable for a LOCK TABLE or SELECT FOR UPDATE command.
Action: Tr ......
Oracle的锁机制归纳总结
锁是防止在两个事务操作同一个数据源(表或行)时交互破坏数据的一种机制。Oracle采用封锁技术保证并发操作的可串行性。Oracle的锁分为两大
类:数据锁(也称DML锁)和字典锁。字典锁是Oracle
DBMS内部用于对字典表的封锁。字典锁包括语法分析锁和DDL锁,由DBMS在必要 ......
Oracle在日期使用上允许极大的灵活性。由于可以在日期字段存储时间和日期,从而有函数可以既引用日期又引用时间。
Oracle 所提供的一些日期函数如下所示。
1. SYSDATE
返回当前的日期和时间。
示例
SELECT sysdate from dual;
SYSDATE
----------
05-3月 -03
2. ADD_MONTHS(d, no_of_month)
当前日期"m"后推"no_o ......
关于oracle的行级锁
在oracle中,行级锁只对用户正在访问的行进行锁定。
如果该用户正在修改某行,那么其他用户就可以更新同一表中该行之外的数据。
行级锁是一种排他锁,防止其他事务修改此行,但是不会阻止读取此行的操作
。
在使用INSERT、UPDATE、DELETE 和SELECT…FOR UPDATE 等语句时 ......