AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-31822

Jorge Vega Sánchez's questions

Martin Hope
Jorge Vega Sánchez
Asked: 2019-07-20 04:29:38 +0800 CST

ORA-01652: 在 Oracle 12c 中扩展表空间,没有 DBA_DATA_FILES 表

  • 1

我知道关于这个主题还有其他问题,但是阅读和尝试它们并不能解决我的问题。主要是因为select * from DBA_DATA_FILES;执行时显示错误,因为该表在数据库中不存在。

我知道使用以下查询的不同表空间,看起来也不标准:

SELECT * FROM USER_TABLESPACES;

执行应使用许多临时空间的请求时,抛出 ORA 错误 ORA-01652。

有问题的表空间是R1XQDTM1。在表空间信息下方:表空间信息屏幕截图

问题是我不知道这个表空间的数据文件位置来执行解决方案请求ALTER TABLESPACE ADD DATAFILE

oracle oracle-12c
  • 1 个回答
  • 829 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2019-06-07 04:47:54 +0800 CST

更改序列中的 LAST_NUMBER 值 (NEXTVAL)

  • 4

我的问题似乎很简单,但我还没有找到解决方案。我在插入 SQL 脚本中使用了 nexval 序列,但我们有错误,因为 LAST_NUMBER 值尚未更新,并且它的值与 tabla 数据不正确。例如,对于这种情况,值为 5,表有 62 行。

我在谷歌上搜索过,但没有找到命令或更改序列的 LAST_NUMBER 参数的方式。

ALTER SEQUENCE rs2qnes0 START WITH 62;

或者ALTER SEQUENCE rs2qnes0 LAST_NUMBER 62;不工作

oracle sequence
  • 2 个回答
  • 40188 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2015-12-04 06:00:30 +0800 CST

PL/SQL 块运行而不打印任何输出

  • 0

我正在尝试使用 dbms_output 执行 pl/sql 块以获取控制台输出,但 SQL 开发人员的唯一答案是“匿名块已完成”。

declare
    v_count integer;
    lines dbms_output.chararr;
    num_lines number;
 begin
    dbms_output.ENABLE;
    num_lines := 0;

    for r in (select table_name, owner from all_tables
              where owner = 'SYSAME'
              and table_name like 'SYZ%'
              and table_name not in (select distinct table_name from all_tab_columns
                                      where OWNER = 'SYSAME'
                                      and table_name like '%SYZ%'
                                      and column_name not like '%FL_IDE_FILIALE%')) 

    loop
        execute immediate 'select count(*) from ' || r.table_name || ' where fl_ide_filiale = 12' 
            into v_count;
        dbms_output.Put_line(r.table_name ||';'|| r.owner ||';'|| v_count ||';'|| SYSDATE );    
        num_lines := num_lines + 1; 
    end loop;

    dbms_output.get_lines(lines, num_lines);
    dbms_output.Put_line(num_lines);

    FOR i IN 1..num_lines LOOP
      dbms_output.Put_line(lines(i));
    END LOOP; 

end;

知道为什么我没有获得任何输出吗?

Q2:有没有办法不使用字符串线和类似表格的方式绘制输出。在这种情况下,类似于具有此值的选择: r.table_name, r.owner, v_count, SYSDATE

oracle oracle-10g
  • 2 个回答
  • 1659 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2014-02-14 02:28:07 +0800 CST

导入 (imp) 未显示最终报告统计/结果

  • 1

我正在尝试执行 dmp 文件的导入,但未获得导入的最终结果。这真的很奇怪,因为我获得了包含以下内容的非常大的文件(nohup.out 和 imp_xxx.log):

Column 98 1
Column 99
Column 100
Column 101 0
Column 102 0
Column 103
Column 104
Column 105
Column 106 0
Column 107 0

预期的:

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Data Mining and Real Application Testing options

Export file created by EXPORT:V10.02.01 via conventional path
import done in WE8ISO8859P15 character set and AL16UTF16 NCHAR character set
import server uses AL32UTF8 character set (possible charset conversion)
. importing CPEDF33's objects into CPEDF33
. . importing table                 "x"            0 rows imported
. . importing table                 "x1"           0 rows imported
. . importing table                 "x2"           0 rows imported
. . importing table                 "x3"     2599617 rows imported
. . importing table                 "x4"     2244766 rows imported
. . importing table                 "x5"     1561223 rows imported
. . importing table                 "xx5"         20 rows imported
. . importing table                 "xx4"    1931263 rows imported
. . importing table                 "xx3"       2167 rows imported
. . importing table                 "xx2"    4044280 rows imported
. . importing table                 "xx1"    4126340 rows imported
. . importing table                 "x8"        2453 rows imported
. . importing table                 "x7"           0 rows imported

小鬼命令:

nohup imp MINE/Hi2013* file=H_FULL_20140212.dmp log=imp_H__FULL_20140212.log FROMUSER=MINE TOUSER=MINE STATISTICS=NONE ROWS=Y IGNORE=Y &
oracle-10g import
  • 1 个回答
  • 187 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2014-01-29 04:05:30 +0800 CST

Oracle 10g 中的表空间调整大小

  • 1

我正在尝试调整几个表空间的大小,但以下查询仅在 Oracle 11g 中有效。

alter tablespace 2 DATAFILE '/appli2/oracle/xxx/oradata02/xxx_undo_01.dbf' resize 3g; 

在 oracle v10g 中,我尝试使用从 oracle 文档中挑选的这个查询:

alter DATABASE DATAFILE '/appli2/oracle/xxx/oradata02/xxx_undo_01.dbf' resize 3g;

我使用 Oracle 10g,此查询根据无效ALTER DATABASE修饰符引发错误消息。

错误消息:第 1 行出现错误:ORA-02140:无效的表空间名称

提前致谢。

oracle-10g tablespaces
  • 1 个回答
  • 9206 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2014-01-28 12:07:37 +0800 CST

更改表中的所有数据类型

  • 2

我正在迁移一个数据库,我需要更改“容器”,我不知道如何命名它。我举一个例子来保持清楚:

旧基地:

VARCHAR2(20 BYTE)

新基地:

VARCHAR2(20 CHAR)

我可以单独使用alter...modify查询来完成,但是准备查询需要花费很多时间,因为表有一百个或更多列。是否有任何脚本方式或查询可以使用char更改所有字节容器?

oracle-10g
  • 2 个回答
  • 853 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2013-12-27 01:43:38 +0800 CST

从源数据库文件系统已更改的转储导入 Oracle 数据库

  • 1

我正在将数据库从一台服务器迁移到另一台服务器。在迁移过程中,我们将文件系统结构从:

/appli2/oradata05/HISTO/
/appli2/oradata06/HISTO/
/appli2/oraredolog01/HISTO/
/appli2/oraarch/HISTO/

至

/appli2/oracle/HISTO/oradata05
/appli2/oracle/HISTO/oradata06/HISTO/
/appli2/oracle/HISTO/oraredolog01/HISTO/
/appli2oracle/HISTO/oraarch/HISTO/

根据这些变化,我得到了错误:

Starting "SYSTEM"."SYS_IMPORT_FULL_01":  SYSTEM/******** DIRECTORY=MIG11G DUMPFILE=20131125_full_HISTO.expdp LOGFILE=impdp_dump_HISTO_r7.log parallel=4 
Processing object type DATABASE_EXPORT/TABLESPACE
ORA-31684: Object type TABLESPACE:"UNDO" already exists
ORA-31684: Object type TABLESPACE:"TEMP" already exists
ORA-31684: Object type TABLESPACE:"TOOLS" already exists
ORA-39083: Object type TABLESPACE failed to create with error:
ORA-01119: error in creating database file '/appli2/oradata05/HISTO/HISTO_tab_anc_01.dbf'
ORA-27040: file create error, unable to create file
IBM AIX RISC System/6000 Error: 13: Permission denied
Failing sql is:
CREATE TABLESPACE "TAB_ANC" DATAFILE '/appli2/oradata05/HISTO/HISTO_tab_anc_01.dbf' SIZE 1048576000,'/appli2/oradata05/HISTO/HISTO_tab_anc_02.dbf' SIZE 2146435072 LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL UNIFORM 
ORA-39083: Object type TABLESPACE failed to create with error:
ORA-01119: error in creating database file '/appli2/oradata06/HISTO/HISTO_idx_anc_01.dbf'
ORA-27040: file create error, unable to create file
IBM AIX RISC System/6000 Error: 13: Permission denied
Failing sql is:
CREATE TABLESPACE "IDX_ANC" DATAFILE '/appli2/oradata06/HISTO/HISTO_idx_anc_01.dbf' SIZE 1048576000,'/appli2/oradata06/HISTO/HISTO_idx_anc_02.dbf' SIZE 2146435072 LOGGING ONLINE PERMANENT BLOCKSIZE 8192 EXTENT MANAGEMENT LOCAL UNIFORM 

是否可以只导入当前文件系统结构中的数据?我看到了 remap 命令,但我从未使用过它,如果它是问题的答案,有人可以举一个例子来使用它。

remap_tablespace:source_tablespace_1:user,source_tablespace_2:user
oracle-10g dump
  • 1 个回答
  • 6137 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2013-12-25 02:36:11 +0800 CST

删除一个oracle实例,正确的方法

  • 10

我想删除在 AIX 6.0 操作系统中创建的 oracle 实例(oracle 10.2.0.4.0)。我知道我可以删除终端中的所有 dbf 和 ctl 文件,但我认为这不是最好的方法。我认为必须是一种更清洁的方式来做到这一点。

提前致谢。

oracle-10g delete
  • 2 个回答
  • 84871 Views
Martin Hope
Jorge Vega Sánchez
Asked: 2013-12-24 13:28:45 +0800 CST

用户创建和导入转储的权限

  • 0

我在创建 Oracle 10.2.0.4 实例和从其他环境导入转储时遇到问题。我在 AIX 下使用 Oracle。

我使用了一个 ksh 脚本,一切正常,除了创建用户时。

之后,我创建了默认用户,用于连接到数据库和其他工作模块。尝试导入转储时出现问题。

export ORACLE_SID=HISTO;
sqlplus / as sysdba
CREATE USER ANC IDENTIFIED BY "xxxxxxx";         
grant connect, create session, imp_full_database to ANC;
commit;

尝试导入 de dump 时的错误如下。 用于加载转储的命令:nohup impdp ANC/xxxxxx DIRECTORY=MIG11G DUMPFILE=dump_histo.expdp LOGFILE=impdp_29102013.log schemas=HISTO &

nohup.out 文件的输出:

Import: Release 10.2.0.4.0 - 64bit Production on Lundi, 23 Décembre, 2013 18:51:22

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
With the Data Mining and Real Application Testing options
ORA-31626: job does not exist
ORA-31633: unable to create master table "ANC.SYS_IMPORT_SCHEMA_05"
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
ORA-06512: at "SYS.KUPV$FT", line 871
ORA-01950: no privileges on tablespace 'TOOLS'

我的问题:没有系统用户加载转储文件是否正常?
为什么转储文件的加载失败?

oracle-10g users
  • 1 个回答
  • 4025 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目

    • 12 个回答
  • Marko Smith

    如何让sqlplus的输出出现在一行中?

    • 3 个回答
  • Marko Smith

    选择具有最大日期或最晚日期的日期

    • 3 个回答
  • Marko Smith

    如何列出 PostgreSQL 中的所有模式?

    • 4 个回答
  • Marko Smith

    列出指定表的所有列

    • 5 个回答
  • Marko Smith

    如何在不修改我自己的 tnsnames.ora 的情况下使用 sqlplus 连接到位于另一台主机上的 Oracle 数据库

    • 4 个回答
  • Marko Smith

    你如何mysqldump特定的表?

    • 4 个回答
  • Marko Smith

    使用 psql 列出数据库权限

    • 10 个回答
  • Marko Smith

    如何从 PostgreSQL 中的选择查询中将值插入表中?

    • 4 个回答
  • Marko Smith

    如何使用 psql 列出所有数据库和表?

    • 7 个回答
  • Martin Hope
    Jin 连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目 2014-12-02 02:54:58 +0800 CST
  • Martin Hope
    Stéphane 如何列出 PostgreSQL 中的所有模式? 2013-04-16 11:19:16 +0800 CST
  • Martin Hope
    Mike Walsh 为什么事务日志不断增长或空间不足? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland 列出指定表的所有列 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney MySQL 能否合理地对数十亿行执行查询? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx 如何监控大型 .sql 文件的导入进度? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison 你如何mysqldump特定的表? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 对 SQL 查询进行计时? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas 如何从 PostgreSQL 中的选择查询中将值插入表中? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 列出所有数据库和表? 2011-02-18 00:45:49 +0800 CST

热门标签

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve