UNIX 下安裝PERL 並支援ORACLE 資料庫cd perl-5.6.1rm -f config.sh Policy.sh sh Configure -d (選擇預設安裝) make make test make install cd DBI-1.13 #perl Makefile.PL #make #make test #make install #tar -xvf DBD-Oracle-1.06.tar cd DBD-
create smallfile tablespace "newts"datafile 'D:\app\oracle\oradata\orcl11g\newts01.dbf'size 100m autoextend on next 10m maxsize 200mlogging /*資料表空間中針對段的所有操作將產生重做內容,這是預設做法,可以為極少數操作(如產生索引)禁用產生重做選項*/extent management local
declare cursor o isselect distinct to_char(report_date,'yyyymmdd') report_date from My_test_DAY_REPORT where report_date >=to_date(20130501,'yyyymmdd') order by 1; riqi o%rowtype;begin open o; loop fetch o into riqi; exit when o%notfound;
Checking operating system requirements ...Expected result: One of redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2Actual Result: redhat-4Check complete. The overall result of this check is: Passed==========================================================
ORACLE 與 mysql 的區別1.在ORACLE中用select * from all_users顯示所有的使用者,而在MYSQL中顯示所有資料庫的命令是showdatabases。對於我的理解,ORACLE項目來說一個項目就應該有一個使用者和其對應的資料表空間,而MYSQL項目中也應該有個使用者和一個庫。在ORACLE(db2也一樣)中資料表空間是檔案系統中的物理容器的邏輯表示,視圖、觸發器和預存程序也可以儲存在資料表空間中。而MYSQL並沒有使用資料表空間來進行管理。 2
一、設定Linux電腦字元集,使其跟電腦上的Oracle資料庫字元集一致;在Linux命令列介面,查詢Oracle資料庫字元集:select * from nls_database_parameters t where t.parameter=’NLS_CHARACTERSET’;查詢結果:ZHS16CGB231280然後vi /home/oracle/.bash_profileexport NLS_LANG=american_america.ZHS16CGB231280source
The Oracle TO_CHAR(datetime, fmt) function converts datetime values to a string in the format specified by the fmt option. MySQL has the DATE_FORMAT function that allows datetime values converting to a string in the specified format. SQLWays