@echo offREM ###########################################################REM # Windows Server 2003下Oracle資料庫自動備份批處理指令碼REM ###########################################################REM 取當前系統時間,可能因作業系統不同而取值不一樣set CURDATE=%date:~0,4%%date:~5,2%%date:~8,
ora-0103的問題 ORA-1034 ORACLE not available 網上摘得解決oracle ora-0103的問題:作為參考每一個DBA在進行資料庫管理的過程中不可避免的要遇到形形色色的錯誤(ORA-1547 ,ORA-904,ORA-1578......)。有些錯誤由於頻繁出現、原因複雜而被 Oracle DBA 們戲稱之為"經典的錯誤"。其中ORA-3113 "end offile on communication channel" 就是這樣的一個。
登陸 > sqlplus / as sysdba //建立資料表空間create tablespace TbSpace_dataloggingdatafile '/u01/oracle/TbSpace/tbspace_data01.dbf' size 32m autoextend on next 32m maxsize 2048mextent management local;//建立使用者並指定資料表空間 create user weiming identified by
sql語句如下:select bu.deptno,count(bu.hiredate) StartMonthCount from userinfo bu,dept d where bu.deptno=d.deptno and bu.hiredate<to_date(‘?’,'yyyy-mm-dd') group by bu.deptnojava程式中調用:pstmt.setString(1, firstDay);出現如下異常java.sql.SQLException: 無效的列索引at
---建立學生表---create table student(STU_NO number(10) NOT NULL,STU_NAME varchar2(20) NOT NULL,STU_AGE number(10) NOT NULL,constraint PK_STUDENT PRIMARY KEY(STU_NO)--設為主健);---插入資料---insert into student select 1001,'AE','12' from dual union select 10
察看listener.log 確認沒有問題# find / -name listener.log/home/oracle/app/OraHome_1/network/log/listener.log位置在$ORACLE_HOME/network/log/listener.log TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 29-DEC-2009 15:12:15Copyright (c) 19
在ORACLE中,沒有象MS-SQLSERVER中那樣子有自增欄位,但是如果我們要實現這個功能,有2種方法1 Triggersql語句如下:create or replace trigger trigger_namebefore insert on your_sid.tablenamefor each rowbegindeclare i number;cursor cur is select max(id) from your_sid.tablename;BEGINopen cur;FETCH