1、创建密码和授权:
CREATE USER jbpm IDENTIFIED BY jbpm
DEFAULT TABLESPACE TEST_DATA
TEMPORARY TABLESPACE TEST_TEMP;
GRANT
CREATE SESSION, CREATE ANY TABLE, CREATE ANY VIEW ,CREATE ANY INDEX, CREATE ANY PROCEDURE,ALTER ANY TABLE, ALTER ANY PROCEDURE,
DROP ANY TABLE, DROP ANY VIEW, DROP ANY INDEX, DROP ANY PROCEDURE,
SELECT ANY TABLE, INSERT ANY TABLE, UPDATE ANY TABLE, DELETE ANY TABLE
TO jbpm;
2、查询锁表语句:
SELECT a.object_id, a.session_id, b.object_name
FROM v$locked_object a, dba_objects b
WHERE a.object_id = b.object_id
3、pl/sql连接字符串:
sqlStr := 'insert into ' || tableName || '(C_ID, C_NT_TXN_ID, C_SERIAL_NO, C_CASH_FLAG, C_CASH_TYPE, C_CASH_CURRENCY, C_CASH_BOX_ID, C_TRANS_DATE, C_TRANS_TIME)
values (''' || v_ntCashId || ''','''|| v_tnxId ||''',''MJAQ018500'', ''0'' ,'' 0'' , ''10000'', null, ''20140612'', ''114422'')';
ps:在字符串中,两个‘’ 代表一个‘。
3、表空间不足:
表空间不足,可以为表空间再添加一个数据文件
alter tablespace USERS add datafile '/opt/ora9/users02.dbf' size50M autoextend on next 50M maxsize UNLIMITED;
4、把输出信息输出到文本
spool feelview_data.log,这句话不能写在第一行,不然不生效。