服务器 频道

WINDOWS下ORACLE管理入门

  【IT168 服务器学院】进入行方式服务器管理:SVRMGRL
  启动数据库:connect internal
              startup
  关闭数据库:shutdown immediate

  创建表空间:create tablespace mobile datafile ''d:/oracle/oradata/mobile/mobile.dbf'' size 10m
  增加表空间:alter tablespace mobile add datafile ''d:/oracle/oradata/mobile/mobile2.dbf'' size 10m
  删除表空间:drop tablespace mobile2 including contents
          
  列出表空间名称和默认参数: select tablespace_name "tablespace",initial_extent,next_extent,min_exte
  ts,max_extents,pct_increase from dba_tablespaces;
  列出数据文件大小和关联的表空间:select file_name,bytes,blocks,tablespace_name from dba_data_files;
  查看参数: show parameters
  只查看带size字符数: show parameters size

一些重要的参数:db_block_size                                  数据高速缓冲区                         建议放大          
                shared_pool_size                               数据字典高速缓冲区                     建议放大
                sort_area_size                                 分类语句order group处理参数            建议放大
                log_checkpoints_to_alert(checkpoint_process) 检查点                                 建议设为TRUE
                process                                        最大连接进程数                         建议为200          
                open_cursors                                   用户一次打开光标最大数                 建议为250
                db_writer                                      同时写信息到数据库的进程数             建议为2
                time_statistics                                运行时附加信息 检查点                  系统正式运行时须关闭
                optimizer_mode                                 SQL优化参数                       建议为FULL_ROWS/ALL_ROWS    
显示SGA:  show sga

0
相关文章