pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pepe TD Vo <pepevo@yahoo.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: import tablespaces from oracle to postgres
Date: Tue, 29 Jan 2019 14:07:26 +0000 (UTC)
Message-ID: <583336373.3022264.1548770846372@mail.yahoo.com> (raw)
References: <583336373.3022264.1548770846372.ref@mail.yahoo.com>

Hi experts,
I am using Ora2pg to export cidr in oracle to postgres.  When the export Tablespace.sql is done, I import into the Postgres, Cidr.  I get ERROR below
$psql -U posgres -d CIDR < TABLESPACE_cidrdba.sql
SET
CREATE TABLESPACE
ERROR: directory"/opt/postgres11/data/cidr/PG_11_201809051" already in use as a tablespace.
even trying to create tablespace manually still said it's already in use, but PG_11_20109051 is belong to cidr_data tablespace, how can I create new tablespaces for cidr postgres db?

$psql -U posgres -d CIDR $psql> create tablespace cidr_lg location 'opt/postgres11/data/cidr';
SET
CREATE TABLESPACE
ERROR: directory"/opt/postgres11/data/cidr/PG_11_201809051" already in use as a tablespace.
$psql> create tablespace cidr_dg location 'opt/postgres11/data/cidr';SET
CREATE TABLESPACE
ERROR: directory"/opt/postgres11/data/cidr/PG_11_201809051" already in use as a tablespace.

how can I create new tablespaces for cidr postgres db?
v/r,
Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success

view thread (5+ messages)  latest in thread

Message-ID: <583336373.3022264.1548770846372@mail.yahoo.com>
Permalink:  ../583336373.3022264.1548770846372@mail.yahoo.com/
Also on:    postgresql.org/message-id/583336373.3022264.1548770846372@mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pepevo@yahoo.com, pgsql-admin@lists.postgresql.org
  Subject: Re: import tablespaces from oracle to postgres
  In-Reply-To: <583336373.3022264.1548770846372@mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox