oracle里的常用命令(编辑修改稿)内容摘要:

l 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 constraints sql alter table xay enable novalidate constraint xay_id。 constraints sql alter table xay enable validate constraint xay_id。 第六章: LOAD数据 data using direct_load insert sql insert /*+append */ into emp nologging sql select * from emp_old。 directload insert sql alter session enable parallel dml。 sql insert /*+parallel(emp,2) */ into emp nologging sql select * from emp_old。 sql*loader sql sqlldr scott/tiger \ sql control = \ sql log = direct=true 第七章: reanizing data expoty $exp scott/tiger tables(dept,emp) file=c:\ log= press=n direct=y import $imp scott/tiger tables(dept,emp) file= log= ignore=y a tablespace sqlalter tablespace sales_ts read only。 $exp sys/.. file= transport_tablespace=y tablespace=sales_ts triggers=n constraints=n $copy datafile $imp sys/.. file= transport_tablespace=y datafiles=(/disk1/,/disk2 /) sql alter tablespace sales_ts read write。 transport set sql (ts_list =39。 sales_ts39。 ..,incl_constraints=true)。 在表 transport_set_violations 中查看 sql 为 true 是, 表示自包含 第八章: managing password security and resources account lock and password sql alter user juncky identified by oracle account unlock。 password function sql function_name(userid in varchar2(30),password in varchar2(30), old_password in varchar2(30)) return boolean a profile : password setting sql create profile grace_5 limit failed_login_attempts 3 sql password_lock_time unlimited password_life_time 30 sqlpassword_reuse_time 30 password_verify_function verify_function sql password_grace_time 5。 a profile sql alter profile default failed_login_attempts 3 sql password_life_time 60 password_grace_time 10。 a profile sql drop profile grace_5 [cascade]。 a profile : resource limit sql create profile developer_prof limit sessions_per_user 2 sql cpu_per_session 10000 idle_time 60 connect_time 480。 7. view = resource_cost : alter resource cost dba_Users,dba_profiles 8. enable resource limits sql alter system set resource_limit=true。 第九章: Managing users a user: database authentication sql create user juncky identified by oracle default tablespace users sql temporary tablespace temp quota 10m on data password expire sql [account lock|unlock] [profile profilename|default]。 user quota on tablespace sql alter user juncky quota 0 o。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。