1. 程式人生 > >oracle常用管理命令

oracle常用管理命令

第一章:日誌管理
  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','/disk4/log4b.rdo') size 1m;
  4.adding online redo log members
  sql> alter database add logfile member
  sql> '/disk3/log1b.rdo' to group 1,
  sql> '/disk4/log2b.rdo' to group 2;
  5.changes the name of the online redo logfile
  sql> alter database rename file 'c:/oracle/oradata/oradb/redo01.log'
  sql> to 'c:/oracle/oradata/redo01.log';
  6.drop online redo log groups
  sql> alter database drop logfile group 3;
  7.drop online redo log members
  sql> alter database drop logfile member 'c:/oracle/oradata/redo01.log';
  8.clearing online redo log files
  sql> alter database clear [unarchived] logfile 'c:/oracle/log2a.rdo';
  9.using logminer analyzing redo logfiles
  a. in the init.ora specify utl_file_dir = ' '
  b. sql> execute dbms_logmnr_d.build('oradb.ora','c:\oracle\oradb\log');
  c. sql> execute dbms_logmnr_add_logfile('c:\oracle\oradata\oradb\redo01.log',
  sql> dbms_logmnr.new);
  d. sql> execute dbms_logmnr.add_logfile('c:\oracle\oradata\oradb\redo02.log',
  sql> dbms_logmnr.addfile);
  e. sql> execute dbms_logmnr.start_logmnr(dictfilename=>'c:\oracle\oradb\log\oradb.ora');
  f. sql> select * from v$logmnr_contents(v$logmnr_dictionary,v$logmnr_parameters
  sql> v$logmnr_logs);
  g. sql> execute dbms_logmnr.end_logmnr;
  第二章:表空間管理
  1.create tablespaces
  sql> create tablespace tablespace_name datafile 'c:\oracle\oradata\file1.dbf' size 100m,
  sql> 'c:\oracle\oradata\file2.dbf' size 100m minimum extent 550k [logging/nologging]
  sql> default storage (initial 500k next 500k maxextents 500 pctinccease 0)
  sql> [online/offline] [permanent/temporary] [extent_management_clause]
  2.locally managed tablespace
  sql> create tablespace user_data datafile 'c:\oracle\oradata\user_data01.dbf'
  sql> size 500m extent management local uniform size 10m;
  3.temporary tablespace
  sql> create temporary tablespace temp tempfile 'c:\oracle\oradata\temp01.dbf'
  sql> size 500m extent management local uniform size 10m;
  4.change the storage setting
  sql> alter tablespace app_data minimum extent 2m;
  sql> alter tablespace app_data default storage(initial 2m next 2m maxextents 999);
  5.taking tablespace offline or online
  sql> alter tablespace app_data offline;
  sql> alter tablespace app_data online;
  6.read_only tablespace
  sql> alter tablespace app_data read only|write;
  7.droping tablespace
  sql> drop tablespace app_data including contents;
  8.enableing automatic extension of data files
  sql> alter tablespace app_data add datafile 'c:\oracle\oradata\app_data01.dbf' size 200m
  sql> autoextend on next 10m maxsize 500m;
  9.change the size fo data files manually
  sql> alter database datafile 'c:\oracle\oradata\app_data.dbf' resize 200m;
  10.Moving data files: alter tablespace
  sql> alter tablespace app_data rename datafile 'c:\oracle\oradata\app_data.dbf'
  sql> to 'c:\oracle\app_data.dbf';
  11.moving data files:alter database
  sql> alter database rename file 'c:\oracle\oradata\app_data.dbf'
  sql> to 'c:\oracle\app_data.dbf';
  第三章:表
  1.create a table
  sql> create table table_name (column datatype,column datatype]....)
  sql> tablespace tablespace_name [pctfree integer] [pctused integer]
  sql> [initrans integer] [maxtrans integer]
  sql> storage(initial 200k next 200k pctincrease 0 maxextents 50)
  sql> [logging|nologging] [cache|nocache]
  2.copy an existing table
  sql> create table table_name [logging|nologging] as subquery
  3.create temporary table
  sql> create global temporary table xay_temp as select * from xay;
  on commit preserve rows/on commit delete rows
  4.pctfree = (average row size - initial row size) *100 /average row size
  pctused = 100-pctfree- (average row size*100/available data space)
  5.change storage and block utilization parameter
  sql> alter table table_name pctfree=30 pctused=50 storage(next 500k
  sql> minextents 2 maxextents 100);
  6.manually allocating extents
  sql> alter table table_name allocate extent(size 500k datafile 'c:/oracle/data.dbf');
  7.move tablespace
  sql> alter table employee move tablespace users;
  8.deallocate of unused space
  sql> alter table table_name deallocate unused [keep integer]
  9.truncate a table
  sql> truncate table table_name;
  10.drop a table
  sql> drop table table_name [cascade constraints];
  11.drop a column
  sql> alter table table_name drop column comments cascade constraints checkpoint 1000;
  alter table table_name drop columns continue;
  12.mark a column as unused
  sql> alter table table_name set unused column comments cascade constraints;
  alter table table_name drop unused columns checkpoint 1000;
  alter table orders drop columns continue checkpoint 1000
  data_dictionary : dba_unused_col_tabs
  第四章:索引
  1.creating function-based indexes
  sql> create index summit.item_quantity on summit.item(quantity-quantity_shipped);
  2.create a B-tree index
  sql> create [unique] index index_name on table_name(column,.. asc/desc) tablespace
  sql> tablespace_name [pctfree integer] [initrans integer] [maxtrans integer]
  sql> [logging | nologging] [nosort] storage(initial 200k next 200k pctincrease 0
  sql> maxextents 50);
  3.pctfree(index)=(maximum number of rows-initial number of rows)*100/maximum number of rows
  4.creating reverse key indexes
  sql> create unique index xay_id on xay(a) reverse pctfree 30 storage(initial 200k
  sql> next 200k pctincrease 0 maxextents 50) tablespace indx;
  5.create bitmap index
  sql> create bitmap index xay_id on xay(a) pctfree 30 storage( initial 200k next 200k
  sql> pctincrease 0 maxextents 50) tablespace indx;
  6.change storage parameter of index
  sql> alter index xay_id storage (next 400k maxextents 100);
  7.allocating index space
  sql> alter index xay_id allocate extent(size 200k datafile 'c:/oracle/index.dbf');
  8.alter index xay_id deallocate unused;
  第五章:約束
  1.define constraints as immediate or deferred
  sql> alter session set constraint[s] = immediate/deferred/default;
  set constraint[s] constraint_name/all immediate/deferred;
  2. sql> drop table table_name cascade constraints
  sql> drop tablespace tablespace_name including contents cascade constraints
  3. define constraints while create a table
  sql> create table xay(id number(7) constraint xay_id primary key deferrable
  sql> using index storage(initial 100k next 100k) tablespace indx);
  primary key/unique/references table(column)/check
  4.enable constraints
  sql> alter table xay enable novalidate constraint xay_id;
  5.enable constraints
  sql> alter table xay enable validate constraint xay_id;
  第六章:LOAD資料
  1.loading data using direct_load insert
  sql> insert /*+append */ into emp nologging
  sql> select * from emp_old;
  2.parallel direct-load insert
  sql> alter session enable parallel dml;
  sql> insert /*+parallel(emp,2) */ into emp nologging
  sql> select * from emp_old;
  3.using sql*loader
  sql> sqlldr scott/tiger \
  sql> control = ulcase6.ctl \
  sql> log = ulcase6.log direct=true
  第七章:資料整理
  1.using expoty
  $exp scott/tiger tables(dept,emp) file=c:\emp.dmp log=exp.log compress=n direct=y
  2.using import
  $imp scott/tiger tables(dept,emp) file=emp.dmp log=imp.log ignore=y
  3.transporting a tablespace
  sql>alter tablespace sales_ts read only;
  $exp sys/.. file=xay.dmp transport_tablespace=y tablespace=sales_ts
  triggers=n constraints=n
  $copy datafile
  $imp sys/.. file=xay.dmp transport_tablespace=y datafiles=(/disk1/sles01.dbf,/disk2
  /sles02.dbf)
  sql> alter tablespace sales_ts read write;
  4.checking transport set
  sql> DBMS_tts.transport_set_check(ts_list =>'sales_ts' ..,incl_constraints=>true);
  在表transport_set_violations 中檢視
  sql> dbms_tts.isselfcontained 為true 是, 表示自包含
一、ORACLE的啟動和關閉
1、在單機環境下
要想啟動或關閉ORACLE系統必須首先切換到ORACLE使用者,如下
su - oracle
a、啟動ORACLE系統
oracle>svrmgrl
SVRMGR>connect internal
SVRMGR>startup
SVRMGR>quit
b、關閉ORACLE系統
oracle>svrmgrl
SVRMGR>connect internal
SVRMGR>shutdown
SVRMGR>quit
啟動oracle9i資料庫命令:
$ sqlplus /nolog
SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 13:53:53 2003
Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
SQL> connect / as sysdba  
Connected to an idle instance.
SQL> startup^C
SQL> startup
ORACLE instance started.

2、在雙機環境下
要想啟動或關閉ORACLE系統必須首先切換到root使用者,如下
su - root
a、啟動ORACLE系統
hareg -y oracle
b、關閉ORACLE系統
hareg -n oracle
Oracle資料庫有哪幾種啟動方式

說明:
有以下幾種啟動方式:
1、startup nomount
非安裝啟動,這種方式啟動下可執行:重建控制檔案、重建資料庫
讀取init.ora檔案,啟動instance,即啟動SGA和後臺程序,這種啟動只需要init.ora檔案。

2、startup mount dbname
安裝啟動,這種方式啟動下可執行:
資料庫日誌歸檔、
資料庫介質恢復、
使資料檔案聯機或離線,
重新定位資料檔案、重做日誌檔案。
執行“nomount”,然後開啟控制檔案,確認資料檔案和聯機日誌檔案的位置,
但此時不對資料檔案和日誌檔案進行校驗檢查。

3、startup open dbname
先執行“nomount”,然後執行“mount”,再開啟包括Redo log檔案在內的所有資料庫檔案,
這種方式下可訪問資料庫中的資料。

4、startup,等於以下三個命令
startup nomount
alter database mount
alter database open

5、startup restrict
約束方式啟動
這種方式能夠啟動資料庫,但只允許具有一定特權的使用者訪問
非特權使用者訪問時,會出現以下提示:
ERROR:
ORA-01035: ORACLE 只允許具有 RESTRICTED SESSION 許可權的使用者使用

6、startup force
強制啟動方式
當不能關閉資料庫時,可以用startup force來完成資料庫的關閉
先關閉資料庫,再執行正常啟動資料庫命令

7、startup pfile=引數檔名
帶初始化引數檔案的啟動方式
先讀取引數檔案,再按引數檔案中的設定啟動資料庫
例:startup pfile=E:Oracleadminoradbpfileinit.ora

8、startup EXCLUSIVE
二、使用者如何有效地利用資料字典
   ORACLE的資料字典是資料庫的重要組成部分之一,它隨著資料庫的產生而產生, 隨著資料庫的變化而變化,
體現為sys使用者下的一些表和檢視。資料字典名稱是大寫的英文字元。
    資料字典裡存有使用者資訊、使用者的許可權資訊、所有資料物件資訊、表的約束條件、統計分析資料庫的檢視等。
我們不能手工修改資料字典裡的資訊。
  很多時候,一般的ORACLE使用者不知道如何有效地利用它。
  dictionary   全部資料字典表的名稱和解釋,它有一個同義詞dict
    dict_column   全部資料字典表裡欄位名稱和解釋
    如果我們想查詢跟索引有關的資料字典時,可以用下面這條SQL語句:
    SQL>select * from dictionary where instr(comments,'index')>0;
    如果我們想知道user_indexes表各欄位名稱的詳細含義,可以用下面這條SQL語句:
    SQL>select column_name,comments from dict_columns where table_name='USER_INDEXES';
    依此類推,就可以輕鬆知道資料字典的詳細名稱和解釋,不用檢視ORACLE的其它文件資料了。
    下面按類別列出一些ORACLE使用者常用資料字典的查詢使用方法。
    1、使用者
            檢視當前使用者的預設表空間
            SQL>select username,default_tablespace from user_users;
        檢視當前使用者的角色
        SQL>select * from user_role_privs;
        檢視當前使用者的系統許可權和表級許可權
        SQL>select * from user_sys_privs;
        SQL>select * from user_tab_privs;
    2、表
            檢視使用者下所有的表
            SQL>select * from user_tables;
            檢視名稱包含log字元的表
            SQL>select object_name,object_id from user_objects
                where instr(object_name,'LOG')>0;
            檢視某表的建立時間
            SQL>select object_name,created from user_objects where object_name=upper('&table_name');
            檢視某表的大小
            SQL>select sum(bytes)/(1024*1024) as "size(M)" from user_segments
                where segment_name=upper('&table_name');
            檢視放在ORACLE的記憶體區裡的表
            SQL>select table_name,cache from user_tables where instr(cache,'Y')>0;
    3、索引
            檢視索引個數和類別
            SQL>select index_name,index_type,table_name from user_indexes order by table_name;
            檢視索引被索引的欄位
            SQL>select * from user_ind_columns where index_name=upper('&index_name');
            檢視索引的大小
            SQL>select sum(bytes)/(1024*1024) as "size(M)" from user_segments
                where segment_name=upper('&index_name');
    4、序列號
            檢視序列號,last_number是當前值
            SQL>select * from user_sequences;
    5、檢視
            檢視檢視的名稱
            SQL>select view_name from user_views;
            檢視建立檢視的select語句
            SQL>set view_name,text_length from user_views;
            SQL>set long 2000;                說明:可以根據檢視的text_length值設定set long 的大小
            SQL>select text from user_views where view_name=upper('&view_name');
    6、同義詞
            檢視同義詞的名稱
            SQL>select * from user_synonyms;
    7、約束條件
            檢視某表的約束條件
            SQL>select constraint_name, constraint_type,search_condition, r_constraint_name
                from user_constraints where table_name = upper('&table_name');
        SQL>select c.constraint_name,c.constraint_type,cc.column_name
            from user_constraints c,user_cons_columns cc
            where c.owner = upper('&table_owner') and c.table_name = upper('&table_name')
            and c.owner = cc.owner and c.constraint_name = cc.constraint_name
            order by cc.position;
    8、儲存函式和過程
            檢視函式和過程的狀態
            SQL>select object_name,status from user_objects where object_type='FUNCTION';
            SQL>select object_name,status from user_objects where object_type='PROCEDURE';
            檢視函式和過程的原始碼
            SQL>select text from all_source where owner=user and name=upper('&plsql_name');

三、檢視資料庫的SQL
1、查看錶空間的名稱及大小
    select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size
    from dba_tablespaces t, dba_data_files d
    where t.tablespace_name = d.tablespace_name
    group by t.tablespace_name;
2、查看錶空間物理檔案的名稱及大小
    select tablespace_name, file_id, file_name,
    round(bytes/(1024*1024),0) total_space
    from dba_data_files
    order by tablespace_name;
3、查看回滾段名稱及大小
    select segment_name, tablespace_name, r.status,
    (initial_extent/1024) InitialExtent,(next_extent/1024) NextExtent,
    max_extents, v.curext CurExtent
    From dba_rollback_segs r, v$rollstat v
    Where r.segment_id = v.usn(+)
    order by segment_name ;
4、檢視控制檔案
    select name from v$controlfile;
5、檢視日誌檔案
    select member from v$logfile;
6、查看錶空間的使用情況
    select sum(bytes)/(1024*1024) as free_space,tablespace_name
    from dba_free_space
    group by tablespace_name;
    SELECT A.TABLESPACE_NAME,A.BYTES TOTAL,B.BYTES USED, C.BYTES FREE,
    (B.BYTES*100)/A.BYTES "% USED",(C.BYTES*100)/A.BYTES "% FREE"
    FROM SYS.SM$TS_AVAIL A,SYS.SM$TS_USED B,SYS.SM$TS_FREE C
    WHERE A.TABLESPACE_NAME=B.TABLESPACE_NAME AND A.TABLESPACE_NAME=C.TABLESPACE_NAME;
7、檢視資料庫庫物件
    select owner, object_type, status, count(*) count# from all_objects group by owner, object_type, status;
8、檢視資料庫的版本
    Select version FROM Product_component_version
    Where SUBSTR(PRODUCT,1,6)='Oracle';
9、檢視資料庫的建立日期和歸檔方式
    Select Created, Log_Mode, Log_Mode From V$Database;
四、ORACLE使用者連線的管理
用系統管理員,檢視當前資料庫有幾個使用者連線:
SQL> select username,sid,serial# from v$session;
如果要停某個連線用
SQL> alter system kill session 'sid,serial#';
如果這命令不行,找它UNIX的程序數
SQL> select pro.spid from v$session ses,v$process pro where ses.sid=21 and ses.paddr=pro.addr;
說明:21是某個連線的sid數
然後用 kill 命令殺此程序號。

五、SQL*PLUS使用
a、近入SQL*Plus
$sqlplus 使用者名稱/密碼
   退出SQL*Plus
SQL>exit
b、在sqlplus下得到幫助資訊
列出全部SQL命令和SQL*Plus命令
SQL>help
列出某個特定的命令的資訊
SQL>help 命令名
c、顯示錶結構命令DESCRIBE
SQL>DESC 表名
d、SQL*Plus中的編輯命令
顯示SQL緩衝區命令
SQL>L
修改SQL命令
首先要將待改正行變為當前行
SQL>n
用CHANGE命令修改內容
SQL>c/舊/新
重新確認是否已正確
SQL>L
使用INPUT命令可以在SQL緩衝區中增加一行或多行
SQL>i
SQL>輸入內容
e、呼叫外部系統編輯器
SQL>edit 檔名
可以使用DEFINE命令設定系統變數EDITOR來改變文字編輯器的型別,在login.sql檔案中定義如下一行
DEFINE_EDITOR=vi
f、執行命令檔案
SQL>START test
SQL>@test
常用SQL*Plus語句
a、表的建立、修改、刪除
建立表的命令格式如下:
create table 表名 (列說明列表);
為基表增加新列命令如下:
ALTER TABLE 表名 ADD (列說明列表)
例:為test表增加一列Age,用來存放年齡
    sql>alter table test
        add (Age number(3));
修改基表列定義命令如下:
ALTER TABLE 表名
MODIFY (列名 資料型別)
例:將test表中的Count列寬度加長為10個字元
    sql>alter atble test
        modify (County char(10));
b、將一張表刪除語句的格式如下:
DORP TABLE 表名;
例:表刪除將同時刪除表的資料和表的定義
sql>drop table test
c、表空間的建立、刪除

六、ORACLE邏輯備份的SH檔案
完全備份的SH檔案:exp_comp.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=complete file=/oracle/export/db_comp$rq.dmp"
累計備份的SH檔案:exp_cumu.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=cumulative file=/oracle/export/db_cumu$rq.dmp"
增量備份的SH檔案: exp_incr.sh
rq=` date +"%m%d" `
su - oracle -c "exp system/manager full=y inctype=incremental file=/oracle/export/db_incr$rq.dmp"
root使用者crontab檔案
/var/spool/cron/crontabs/root增加以下內容
0 2 1 * * /oracle/exp_comp.sh
30 2 * * 0-5 /oracle/exp_incr.sh
45 2 * * 6 /oracle/exp_cumu.sh
當然這個時間表可以根據不同的需求來改變的,這只是一個例子。

相關推薦

oracle常用管理命令

第一章:日誌管理   1.forcing log switches   sql> alter system switch logfile;   2.forcing checkpoints   sql> alter system checkpoint;   3.ad

oracle 常用管理命令

刪除表空間:drop tablespace ittbank including contents and datafiles; 修改表空間大小(注:修改=可以增大,可以減小。)alter database datafile '/u01/app/oracle/oradata/ORCL/ittbank.dbf'

Oracle 12c 多租戶常用管理命令

oracle12c 多租戶 管理命令 --進入cdb sqlplus /nolog conn sys/sys as dba --查看數據庫基本信息select name,cdb from v$database;--查看容器的相關信息select con_id,name from v$cont

Oracle 12C CDB、PDB常用管理命令

自動 guid ont rep acl 數據 ace datafile con --查看PDB信息(在CDB模式下) show pdbs --查看所有pdb select name,open_mode from v$pdbs; --v$pdbs為PDB信息視圖 sel

Oracle 11g常用管理命令

首先,以oracle使用者登陸。 1、啟動ORACLE資料庫: 進入sqlplus環境,nolog引數表示不登入:$sqlplus /nolog 以管理員模式登入:$sqlplus / as sysd

elasticsearch 常用管理命令

elasticsearch修改elasticsearch內存分配/usr/local/elasticsearch/bin/elasticsearch.in.sh插件安裝(ES 1.x)/usr/local/elasticsearch/bin/plugin -install mobz/elasticsearch

RAC集群常用管理命令

stop pub enable gem tab res tin all rem 1、查看集群棧狀態: [grid@node2 ~]$ crsctl check cluster -all ****************************************

centos13_其他常用管理命令

技術 gpo 影響 owa bubuko 速度 分享 log 數據 如果磁盤等待時間很長,證明硬盤影響速度不夠(硬盤真的不行,數據庫壓力太大,反復讀寫硬盤) 準則:持續地iowait一直居高,不降低。說明硬盤壓力很大。 意思就是所謂的ll,只

oracle常用SQL命令

兩張 alt server 更新數據 gn3 屬性 rac happy fray 將A表中的字段a1的值全部賦給B表中的字段B1,根據兩張表的ID關聯。 方式1: UPDATE HBSZ071001.tac_bank aSET a.bankno= (SELE

docker 常用管理命令

build 詳細 commands spec history pru 鏡像倉庫 保存 tag docker image 鏡像管理命令 docker image COMMAND COMMANDS: 指令 描述 ls 列出本機鏡像 build 構建鏡像來自Do

mysql 常用管理命令

ble 需要 span l命令 統計 spa mar esc mysql命令 常見的管理mysql命令 (1)用於選擇在MySQL工作區指定的數據庫(選擇數據庫): USE Databasename; (2)列出了MySQL數據庫管理系統中的所有可訪問的數據庫

mysqls數據庫的常用管理命令

rom out rem defaults 開啟 物理 pda 自動 hang 庫,表管理Mysqladmin –u root –p password ‘123123’ //設置數據庫密碼Show dat

Docker容器建立常用選項以及常用管理命令

一:容器建立常用選項 docker run命令不清楚的可以 docker run --help |grep 引數 1、建立容器常用選項 建立容器命令格式: Usage: docker create [OPTIONS] IMAGE [COMMAND] [ARG...] Usag

kafka系列十、kafka常用管理命令

一、Topic管理 1、建立topic kafka-topics.sh --zookeeper 47.52.199.52:2181 --create --topic test-15 --replication-factor 1 --partitions 3 2、新增partition

MySQL---常用管理命令

客戶端連線MySQL服務 C:\WINDOWS\system32> mysql -uroot -p 連線本地MySQL伺服器 C:\WINDOWS\system32> mysql -uroot -p -h11.234.56.34 連線目標MySQL伺服器 •mysql –uro

MongoDB副本集常用管理命令

命令 解釋 rs.initiate()   使用預設配置初始化副本集 rs.initiate(cfg)    使用配置檔案cfg初始化副本集

oracle RAC管理命令

以下命令是針對oracle 11g r2 (版本是11.2.0.4) [[email protected] ~]$ crsctl check cluster -all ***************************************

oracle 常用sql命令

進行資料庫備份遷移之前,如果是oracle11g,一定要做匯出空表設定(ArcSDE10.1版本中的SDE庫比較奇怪,導不出所有的空表,必須先進行設定)。下列cmd命令或sql執行語句,請實施人員一定要看懂,如有必要,請進行相應的替換。 一、資料庫備份步驟: 0、匯出sde

qmail常用管理命令

1.檢視配置檔案 /var/qmail/bin/qmail-showctl 2.檢視當前qmail郵件佇列裡訊息的報告 /var/qmail/bin/qmail-qread 3.檢視狀態 /var/qmail/bin/qmail-qstat svstat /var

WAS 6.1 常用管理命令

1、啟動WAS服務 :./startServer.sh server1 2、停止WAS服務 :./stopServer.sh server1 -username was -password was 3、刪除WAS概要檔案 :./manageprofiles.sh -delete -profileName A