標籤:Oracle數群組類型 Oracle的數群組類型,範例:Sql代碼 create or replace function my_test(p_str varchar2) return number as --普通變數 v_var varchar2(1000); --固定長度數組 type v_ar is varray(10) of varchar2(30); my_ar v_
標籤:linux作業系統下,oracle db 11g中增大memory_max_target和memory_target應該注意的:[[email protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.1.0.7.0 - Production on Tue Jul 14 01:12:24 2015Copyright (c) 1982, 2008, Oracle. All rights reserved.Connected
標籤:oracle資料庫遷移目的:將192.168.9.102上GGWSXT/[email protected]:1521/ORACLE部署到104上1、查看原使用者資料表空間select tablespace_name,count(0) from dba_segments where owner=upper(‘GGWSXT‘) group by tablespace_name;2、查看原使用者建立資料表空間的目錄select * from
標籤:一、遞迴查詢1、表機構 SQL> desc comm_org_subjection Name Null? Type ----------------------------------------- -------- ---------------------------- ORG_SUBJECTION_ID NOT NULL VARCHAR2(32
標籤:oracle效能最佳化create table t2 as select * from dba_objects; 建索引:create index idx_t2 on t2(object_id);2.收集T2的表所有列和表上所有索引的統計資訊:exec dbms_stats.gather_table_stats(ownname=>‘SYS‘,tabname=>‘T2‘,estimate_percent=>100,cascade=>true,degree=
標籤:在Oracle 11.2的資料庫中建表時遇到 RESULT_CACHE (MODE DEFAULT) ORA-00922: missing or invalid optionhostdr:[/home/oracle]$sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Thu Jul 9 12:52:11 2015Copyright (c) 1982, 2011, Oracle. All rights
標籤:1、查詢資料庫中的資料表空間名稱1)查詢所有資料表空間select tablespace_name from dba_tablespaces; select tablespace_name from user_tablespaces; 2)查詢使用過的資料表空間 select distinct tablespace_name from dba_all_tables;select distinct tablespace_name from user_
標籤:1. 複製表結構及其資料:create table table_name_new as select * from table_name_old2. 只複製表結構:create table table_name_new as select * from table_name_old where 1=2;或者:create table table_name_new like table_name_old3. 只複製表資料:如果兩個表結構一樣:insert into