1、檢視作業系統版本
sql> select * from v$version;
banner
oracle database 10g enterprise edition release 10.2.0.1.0 - prod
pl/sql release 10.2.0.1.0 - production
core 10.2.0.1.0 production
tns for linux: version 10.2.0.1.0 - production
nlsrtl version 10.2.0.1.0 - production
sql>
2、檢視預警日誌檔案(alert_sid.log)的位置
sql> show parameter dump
name type value
background_core_dump string partial
background_dump_dest string /u01/oracle/admin/bdump
core_dump_dest string /u01/oracle/admin/cdump
max_dump_file_size string 10240
shadow_core_dump string partial
user_dump_dest string /u01/oracle/admin/udump
3、建立目錄alert
注意:directory不是實體,只是乙個指向,指向os中乙個路徑
sql> create or replace directory alert as '/u01/oracle/admin/bdump';
directory created.
sql>
4、建立外部表alert
sql> create table alert
1 (log varchar2(1000))
2 organization external
3 (type oracle_loader
4 default directory alert
5 access parameters
6 (records delimited by newline)
7 location ('alert_prod.log'))
8 reject limit unlimited;
table created.
5、檢視alert中的內容
sql> select * from alert where rownum<20;
logwed feb 27 11:05:11 2013
starting oracle instance (normal)
cannot determine all dependent dynamic libraries for /proc/self/exe
unable to find dynamic library libocr10.so in search paths
rpath = /ade/aime1_build2101/oracle/has/lib/:/ade/aime1_build2101/oracle/lib/:/ade/aime1_build2101/oracle/has/lib/:
ld_library_path is not set!
the default library directories are /lib and /usr/lib
unable to find dynamic library libocrb10.so in search paths
unable to find dynamic library libocrutl10.so in search paths
unable to find dynamic library libocrutl10.so in search paths
license_max_session = 0
license_sessions_warning = 0
picked latch-free scn scheme 2
using log_archive_dest_1 parameter default value as /u01/oracle/product/10.2.0/db_1/dbs/arch
autotune of undo retention is turned on.
imode=br
ilat =10
license_max_users = 0
sys auditing is disabled
19 rows selected.
sql>
6、看看資料庫有哪些 可愛的ora- 錯誤吧
sql> select * from alert where log like '%ora-%';
logora-959 signalled during: alter database default tablespace users...
ora-959 signalled during: drop tablespace uses...
ora-12919 signalled during: drop tablespace users...
ora-1549 signalled during: drop tablespace users...
ora-1505 signalled during: alter database add logfile group 1
ora-1184 signalled during: alter database add logfile group 1
ora-1013 signalled during: alter tablespace tts read only...
ora-1013 signalled during: alter tablespace tts read only...
ora-1013 signalled during: alter tablespace users read only...
ora-1539 signalled during: alter tablespace users read only...
取消
檢視Linux重啟時間
linux last 命令詳解 功能說明 列出目前與過去登入系統的使用者相關資訊。語 法 last adrx f 記錄檔案 n 顯示列數 帳號名稱.終端機編號.補充說明 單獨執行last指令,它會讀取位於 var log目錄下,名稱為wtmp的檔案,並把該給檔案的內容記錄的登入系統的使用者名單全部顯...
怎麼檢視mysql密碼 怎麼檢視mysql密碼
mysql資料庫檢視密碼的方法如下 以系統管理員身份執行cmd.檢視mysql是否已經啟動,如果已經啟動,就停止 net stop mysql.切換到mysql安裝路徑下 d wamp mysql 5.6.36 bin 如果已經配了環境變數,可以不用切換了。在命令列輸入 mysqld nt skip...
不重啟修改主機名
1 臨時修改主機名 hostname b newname 2 開機獲取主機名,是從 etc sysconfig network 獲取的,所以直接在這裡修改就好 created by anaconda hostname newname 3 為了避免有些程式通過預設127位址找到主機名,還需要修改hos...