alter system和alter database具体是修改什么样参数,只知道一个是修改实例的一个是修改数据库的,具体什么时候用alter system还是alter database?
还有就是show parameters显示的什么参数,实例参数,还是数据库参数?

解决方案 »

  1.   

    Use the ALTER SYSTEM statement to dynamically alter your Oracle Database instance. The settings stay in effect as long as the database is mounted.
    Modifies a database, or the files and filegroups associated with the database. Adds or removes files and filegroups from a database, changes the attributes of a database or its files and filegroups, changes the database collation, and sets database options. Database snapshots cannot be modified和硬盘文件相关的操作,比如增加删除文件等用alter database,其他的不直接牵涉到磁盘文件的操作的,其他则用alter systemalter DATABASE 用于改变一个数据库的属性.alter system 用于动态改变数据库例程的属性ALTER SYSTEM 改变的是逻辑上的,看不见的,而
    ALTER DATABASE 改变的是物理上的,看得见的。
      

  2.   

    基本如楼上这么说吧.也不是说alter database全是看得见的,例如datafile offline,你就物理上看不见的.只能是说通过alter database操作时会触发controlf header和其他一些物理文件头信息的变化