pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pepe TD Vo <pepevo@yahoo.com>
To: Shreeyansh Dba <shreeyansh2014@gmail.com>
Cc: Pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: create tablespaces and users
Date: Mon, 14 Jan 2019 16:33:01 +0000 (UTC)
Message-ID: <108345181.18369387.1547483581537@mail.yahoo.com> (raw)
In-Reply-To: <CAGDYbUN6KGsVGqpGaz222AeBPbw73gB-vvwTxc5SRgQx5=h1RQ@mail.gmail.com>
References: <858026322.18309717.1547479488317.ref@mail.yahoo.com>
	<858026322.18309717.1547479488317@mail.yahoo.com>
	<CAGDYbUP=-MrarmfMe13csQ+BbiqDTAcUEhk-PG8FqQgc1G=kVQ@mail.gmail.com>
	<1244007825.18357044.1547482143445@mail.yahoo.com>
	<CAGDYbUN6KGsVGqpGaz222AeBPbw73gB-vvwTxc5SRgQx5=h1RQ@mail.gmail.com>

yes, we want to migrate oracle to postgres with a new name of database in postgres and keep all the schemas/triggers as same as oracle, not migrate oracle to postgres using the default postgres database. Do I need to build a new database name with all the tablespaces?
CREATE TABLESPACE cidr_data LOCATION '/ssd1/postgresql/data';REATE TABLESPACE cidr_data LOCATION '/ssd1/postgresql/data';CREATE DATABASE "CIDR"    WITH     OWNER = "PSmasteruser"    ENCODING = 'UTF8'    LC_COLLATE = 'en_US.UTF-8'    LC_CTYPE = 'en_US.UTF-8'    TABLESPACE = cidr_data    CONNECTION LIMIT = -1;
you can keep the  schema / trigger same as oracle or transfer data in different schema by creating new as per your requirement whereas the public is the default schema in PostgreSQL.

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 

    On Monday, January 14, 2019 11:27 AM, Shreeyansh Dba <shreeyansh2014@gmail.com> wrote:
 

 Are you talking about migration..?? If yes, you can keep the  schema / trigger same as oracle or transfer data in different schema by creating new as per your requirement whereas the public is the default schema in PostgreSQL.

Thanks & Regards,
Shreeyansh DBA Team
www.shreeyansh.com

On Mon, Jan 14, 2019 at 9:39 PM Pepe TD Vo <pepevo@yahoo.com> wrote:

thank you.  so after create the database, I need to create user and tablespace with each ownershipcreate user <user name>;create tablespace <name> location '<directory path>' owner <user name>;
what if I transfer the schemas/triggers, etc... from oracle to postgres, are they stayed the same or what?  What is the best way suggestion I need to do?
thank you.
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 

    On Monday, January 14, 2019 10:48 AM, Shreeyansh Dba <shreeyansh2014@gmail.com> wrote:
 

 In PostgreSQL tablespaces and user all cluster level objects. tablespace is just another name for a folder where the Postgres server process owner (typically “postgres” system user) is the owner and can write some files. 
In PostgreSQL All objects stored in default tablespace i.e. pg_default. You can create or alter databases in the tablespace and assign ownership for that tablespace.
Commands use for creating user and tablespace:create user <user name>;create tablespace <name> location '<directory path>' owner <user name>;
Thanks & Regards,
Shreeyansh DBA Team
www.shreeyansh.com

On Mon, Jan 14, 2019 at 8:55 PM Pepe TD Vo <pepevo@yahoo.com> wrote:

Hello experts,

view thread (10+ messages)  latest in thread

Message-ID: <108345181.18369387.1547483581537@mail.yahoo.com>
Permalink:  ../108345181.18369387.1547483581537@mail.yahoo.com/
Also on:    postgresql.org/message-id/108345181.18369387.1547483581537@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, shreeyansh2014@gmail.com
  Subject: Re: create tablespaces and users
  In-Reply-To: <108345181.18369387.1547483581537@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