oracle 01653 连不上,Oracle中ORA-01653解决方法

1.创建一个表空间

SQL> create tablespace INVENTORY

2  datafile '/u01/app/oracle/oradata/orcl1/inventory01.dbf'

3  size 5M autoextend off

4  extent management local autoallocate

5  segment space management auto

6  logging;

Tablespace created.

2.执和脚本进行测试

SQL> @/home/oracle/labs/lab_01_05_02.sql

SQL> create table x (a char(1000)) tablespace inventory

2  /

Table created.

SQL> insert into x values('a')

2  /

1 row created.

SQL> insert into x select * from x

2  /

1 row created.

SQL> insert into x select * from x

2  /

2 rows created.

SQL> insert into x select * from x

2  /

4 rows created.

SQL> insert into x select * from x

2  /

8 rows created.

SQL> insert into x select * from x

2  /

16 rows created.

SQL> insert into x select * from x

2  /

32 rows created.

SQL> insert into x select * from x

2  /

64 rows created.

SQL> insert into x select * from x

2  /

128 rows created.

SQL> insert into x select * from x

2  /

256 rows created.

SQL> insert into x select * from x

2  /

512 rows created.

SQL> insert into x select * from x

2  /

1024 rows created.

SQL> insert into x select * from x

2  /

insert into x select * from x

*

ERROR at line 1:

ORA-01653: unable to extend table SYS.X by 128 in tablespace INVENTORY

SQL> commit

2  /

Commit complete.

SQL> quit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

3.修改表空间大小

SQL> alter database datafile

2  '/u01/app/oracle/oradata/orcl1/inventory01.dbf'

3  resize 50M;

Database altered.

4.删除表

SQL> drop table x;

Table dropped.

5.再次进行测试

SQL> @/home/oracle/labs/lab_01_05_02.sql

SQL> create table x (a char(1000)) tablespace inventory

2  /

Table created.

SQL> insert into x values('a')

2  /

1 row created.

SQL> insert into x select * from x

2  /

1 row created.

SQL> insert into x select * from x

2  /

2 rows created.

SQL> insert into x select * from x

2  /

4 rows created.

SQL> insert into x select * from x

2  /

8 rows created.

SQL> insert into x select * from x

2  /

16 rows created.

SQL> insert into x select * from x

2  /

32 rows created.

SQL> insert into x select * from x

2  /

64 rows created.

SQL> insert into x select * from x

2  /

128 rows created.

SQL> insert into x select * from x

2  /

256 rows created.

SQL> insert into x select * from x

2  /

512 rows created.

SQL> insert into x select * from x

2  /

1024 rows created.

SQL> insert into x select * from x

2  /

2048 rows created.

SQL> commit

2  /

Commit complete.

SQL> quit

Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options6

6.脚本文件内容如下

[oracle@db1 labs]$ cat lab_01_05_02.sql

set echo off

-- Oracle Database 10g: Administration Workshop I

-- Oracle Server Technologies - Curriculum Development

--

-- ***Training purposes only***

-- ***Not appropriate for production use***

--

set echo oncreate table x (a char(1000)) tablespace inventory/insert into x values('a')/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/insert into x select * from x/commit/quit

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Oracle 19c是一款广泛使用的关系型数据库管理系统。ORA-12541错误是一种TNS无法解析指定的连接标识符所引起的错误,表示远程主机或服务无法到达。 产生ORA-12541错误的原因可能有以下几种: 1. TNS服务没有正常启动:验证Oracle数据库实例的监听器是否已经启动。你可以通过运行lsnrctl status命令检查监听器状态。如果监听器没有正常启动,请尝试启动它。 2. 主机名或IP地址错误:确保你输入的主机名或IP地址是正确的。你可以通过ping命令来验证远程主机是否可达。 3. 端口号错误:检查连接字符串使用的端口号是否是正确的。Oracle数据库默认使用的端口号是1521。 4. 防火墙或安全组问题:当你在本地无法访问Oracle数据库实例时,有可能是由于本机的防火墙或安全组规则禁止了连接。请确保防火墙或安全组规则允许你的本机访问指定的端口。 解决ORA-12541错误的方法如下: 1. 确保Oracle数据库实例的监听器已经正常启动。 2. 检查主机名或IP地址是否正确。 3. 验证连接字符串的端口号是否正确。 4. 检查防火墙或安全组规则,确保允许本机访问指定的端口。 总结:ORA-12541错误表示无法连接到远程主机或服务。通过检查监听器状态、确认主机名或IP地址、验证端口号以及检查防火墙或安全组规则,你可以解决这个错误并成功连接到Oracle数据库实例。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值