標籤:$ adrciADRCI: Release 12.1.0.2.0 - Production on Tue Nov 24 09:31:31 2015Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.ADR base = "/u12/app/oracle"adrci> show log;ADR Home = /u12/app/oracle/diag/rdbms/ora12/ora12:
標籤:Oracle資料庫特點:安全性高,資料類型豐富Oracle是由美國甲骨文公司開發的一款資料庫產品----------------------------------------------------------------------Oracle版本:oracleoracle8i-------------------- internet 支援通過網路訪問oracle9ioracle10G -------------------
標籤:查詢所有表名:select t.table_name from user_tables t;查詢所有欄位名:select t.column_name from user_col_comments t;查詢指定表的所有欄位名:select t.column_name from user_col_comments t where t.table_name = ‘BIZ_DICT_XB‘;查詢指定表的所有欄位名和欄位說明:select t.column_name, t.column_name
標籤: 第一章:日誌管理 1.forcing log switches sql> alter system switch logfile; 2.forcing checkpoints sql> alter system checkpoint; 3.adding online redo log groups sql> alter database add logfile [group 4] sql> (‘/disk3/log4a.rdo‘
標籤:以下都是用結合例子來理解Oracle的知識點使用者登入 (跳開使用者名稱和密碼登入) :sqlplus /nologconnect / as sysdba一.使用者1. 建立使用者(例子)create user olay identified by 123;2. 刪除使用者(連同使用者所擁有的對象一起刪除)drop user olay cascade;3 .修改使用者密碼(口令)alter user olay
標籤:create or replace function isExist(data in DataTypes) --DataTypes 為表中該資料的類型return Numberisv_flag number(2);v_data [DataTypes]; --表中資料的類型beginselect data into v_data from table_name where ....;if v_data not null then v_falg := 1;else v_flag :
標籤:增刪改查 交並補 內串連 外串連建立表: create table table_name( num int IDENTIFIED(1,1) not null, --identified自增量 name VARCHAR2(20) not null, --not null不為空白 age VARCHAR2(20), sex