楼主: overmars

[精华] oracle10g的undrop功能一点实践

[复制链接]
论坛徽章:
17
ITPUB元老
日期:2005-02-28 12:57:00ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:32ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412011新春纪念徽章
日期:2011-02-18 11:43:32ITPUB9周年纪念徽章
日期:2010-10-08 09:28:532010新春纪念徽章
日期:2010-03-01 11:05:01祖国60周年纪念徽章
日期:2009-10-09 08:28:00ITPUB8周年纪念徽章
日期:2009-09-27 10:21:222009新春纪念徽章
日期:2009-01-04 14:52:28奥运会纪念徽章:射击
日期:2008-10-24 13:23:42
11#
 楼主| 发表于 2003-8-22 10:23 | 只看该作者
1、是在ftp.oracle.com/otn/beta/10上面下载,不过现在上去看没有了。

2、目前还不清楚什么参数能控制被删除的对象能在回收站呆多久。

使用道具 举报

回复
论坛徽章:
1
授权会员
日期:2005-10-30 17:05:33
12#
发表于 2003-9-10 17:18 | 只看该作者
呵呵,好功能

使用道具 举报

回复
论坛徽章:
33
授权会员
日期:2005-10-30 17:05:33ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522013年新春福章
日期:2013-02-25 14:51:24马上有车
日期:2014-02-19 11:55:14
13#
发表于 2003-12-27 21:16 | 只看该作者
怎么设置才能使flashback_on 为yes
alter system set db_recovery_file_dest='d:\oracle\recover' scope=both;
alter system set db_recovery_file_dest='d:\oracle\recover' scope=both
*
ERROR at line 1:
ORA-02097: parameter cannot be modified because specified value is invalid
ORA-16019: cannot use db_recovery_file_dest with LOG_ARCHIVE_DEST or
LOG_ARCHIVE_DUPLEX_DEST


alter database flashback on
ora-38709 recovery area is not enabled ?

使用道具 举报

回复
论坛徽章:
60
2007年度最佳版主
日期:2008-04-03 16:46:15现任管理团队成员
日期:2011-05-07 01:45:08双黄蛋
日期:2011-06-15 17:03:34ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
14#
发表于 2003-12-27 21:21 | 只看该作者
最初由 prada_gu 发布
[B]一个表可以在回收站中保留多长时间,由retain的参数值来决定吗? [/B]


空间不够的时候就不能保留

使用道具 举报

回复
招聘 : 数据库管理员
论坛徽章:
66
ITPUB元老
日期:2005-07-16 18:49:11授权会员
日期:2005-10-30 17:05:33ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44现任管理团队成员
日期:2011-05-07 01:45:08版主3段
日期:2012-05-15 15:24:11
15#
发表于 2003-12-27 23:26 | 只看该作者

Re: oracle10g的undrop功能一点实践

SQL> alter table RB$$8074$TABLE$0 rename to emp2;

Table altered.

----------------------
如果我直接:
SQL>rename RB$$8074$TABLE$0 to emp2
是不是效果是一样的?

使用道具 举报

回复
论坛徽章:
60
2007年度最佳版主
日期:2008-04-03 16:46:15现任管理团队成员
日期:2011-05-07 01:45:08双黄蛋
日期:2011-06-15 17:03:34ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
16#
发表于 2003-12-27 23:48 | 只看该作者

Re: Re: oracle10g的undrop功能一点实践

最初由 xzh2000 发布
[B]SQL> alter table RB$$8074$TABLE$0 rename to emp2;

Table altered.

----------------------
如果我直接:
SQL>rename RB$$8074$TABLE$0 to emp2
是不是效果是一样的? [/B]


你这个是已经Undrop的表。

如果是Drop掉的表,你那么操作是不允许的

使用道具 举报

回复
论坛徽章:
60
2007年度最佳版主
日期:2008-04-03 16:46:15现任管理团队成员
日期:2011-05-07 01:45:08双黄蛋
日期:2011-06-15 17:03:34ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:202012新春纪念徽章
日期:2012-02-13 15:13:20
17#
发表于 2003-12-27 23:49 | 只看该作者

使用道具 举报

回复
论坛徽章:
33
授权会员
日期:2005-10-30 17:05:33ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:542012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522013年新春福章
日期:2013-02-25 14:51:24马上有车
日期:2014-02-19 11:55:14
18#
发表于 2003-12-28 12:22 | 只看该作者
Oracle10i Database Administrator’s Guide Release 1 (10.1) - BETA
Part No. B10739-01
刚才搜索了半天,一直没有找到,包括otn,metalink等,
这个谁能发一份给我,万分感谢!

shengui@itpub.net
or
solaris8@tom.com.cn

使用道具 举报

回复
论坛徽章:
0
19#
发表于 2003-12-28 15:44 | 只看该作者
我也想要.cc一份给我可好。
hqinside@yahoo.com

顺便发个刚找到的简单的10g新特性:

[B]Automated Storage Management (ASM)[/B]
There is no need for a logical volume manager or file system when using 10g. This feature allows the SA to publish a list of raw devices and Oracle will completely manage the storage on them. Oracle will stripe and mirror across the disks. As space requirements increase, the DBA can bring in new disks in to the group and Oracle will rebalance the database across those disks. If we have over allocated, then Oracle can remove disks from the group and rebalance the I/O across the remaining disk.

[B]Native cluster manager[/B]
Oracle has licensed the Compaq/DEC Tru64 cluster manager software. The cluster manager is now part of the Oracle code. There is no need to purchase Veritas Clustering software, Sun Cluster, or other vendors add on cluster software when using RAC. RAC will now work the same on Sun, HP, Windows and other platforms.

[B]Improved backups[/B]
Oracle allows the DBA to define a backup destination and the database will manage disk backups to this directory. The DBA will take one and only one full backup. As incremental backups are taken, the changed blocks will overlay the full backup. Therefore, when a restore is required, the updated full backup will eliminate the need of applying multiple incremental backups. The database will also allow the definition of a retention window, which I would assume would mean that we could do point in time recovery with in the window. Also, the incremental backups will be faster than current incremental backups. Oracle has a bit map which tracks all blocks that have been changed since the last incremental backup. So a backup of a 2 TB data warehouse that has only had 1 GB of changes would only have to read the 1 GB of changed blocks and not scan the entire 1 TB like it does prior to 10g.

[B]htmlDB[/B]
Available now a http://marvel.oracle.com
This is part of the base database. Allows for rapid application development without the need to know SQL. It is marketed as a replacement for MS Access for end users to develop their own applications. It is a point and click html based development environment. In one demo, they created a table by cutting and pasting a block from excel where the first row had the column named and the other rows had the data.

[B]OEM[/B]
Enterprise manager will be html based and part of the base database, there is still a management server available. They showed managing a database from a PocketPC using Internet explorer. Events are triggered from the database and not polled from the management server. The database tracks patches and software configurations. The OEM main page will show any critical patches from metalink that have not been installed. A report can be run to show any changes to the database from a previous time. Reports can be run to show differences between dev, test, and prod. Both software installs and configuration parameters. The database has a repository of statistics. V$ stats are stored and trend reports can be run. Statspack is automated. The database will automatically run analysis on the statistics and make recommendations based on the stats.

[B]Sysaux tablespace[/B]
There is now a minimum of two tablespaces for all databases. Sysaux is new required tablespace. All non-sys owned objects will go in sysaux. ie. outln, ordsys, mdsys, etc.

[B]Flashback[/B]
You can now undo a dropped table. There is a recycle bin in the database now. When a table is dropped, it is renamed to an internal object name. The drop can now be undone. This will restore the table, constraints, triggers, and grants. Flashback database, the database can be rolled back to a point in time. Basically it uses the redologs to undo the committed changes. If developers need to repeat a test on the same set of data, then just flashback the database to a point in time prior to the test starting.

[B]transportable tablespaces[/B]
You can now transport a tablespace across platforms. You can unplug a Sun tablepace and plug it into a windows database. Using Oracle streams you can even apply the changes that take place in the tablespace while it is being transported.[B]Automated Storage Management (ASM)[/B]

使用道具 举报

回复
论坛徽章:
0
20#
发表于 2005-7-15 13:45 | 只看该作者
这个回收站能直接清空么?

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表