Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gj5C6-00066U-Mj for pgsql-admin@arkaria.postgresql.org; Mon, 14 Jan 2019 16:34:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gj5C5-0005k4-CF for pgsql-admin@arkaria.postgresql.org; Mon, 14 Jan 2019 16:34:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gj5C5-0005jx-3k for pgsql-admin@lists.postgresql.org; Mon, 14 Jan 2019 16:34:33 +0000 Received: from sonic302-3.consmr.mail.bf2.yahoo.com ([74.6.135.42]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gj5C2-0002TO-76 for pgsql-admin@postgresql.org; Mon, 14 Jan 2019 16:34:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1547483668; bh=td3R72TKOpkuCLicW9Xypp3iJ8QM3u9fN1KyZ/dlfXg=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject; b=TSuT3CvnR83q8xhU1aq84PxzQxiOeRXEZsvyJCXNUm361IjtP2sdbPpwcfKL9krt++aUTpgLbfjToGL336D3t5CiKon8TdBVwBBihGH9axuRu9DLseytb5Yt+pNxClXyJMY8rfT22ImrH9vp1TauWPC1oPejFeE9ospglI7SaSs5QavJFJBqEwRimWJU3/GRW0jl3IcrtbwiqpyZ+H06B0PmO0uTyRXS7jfeK9HIPhORpv9jMokn3PbhRVkdJU7RNpgCnuzMvvW5q+ij7Z7qvdKt5NNMrgmNok9/G89o/TKpLHeGDmT5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FBWJOtoJXDLjOxr_xwSk8gNGqb_Ik VyHRZE9qe9xofNjLC_RnpqY8oaipekHP1nGYcl.BhqC0C6eStPt5f9JMz7c5Eq2zjpTGHhgPn Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.bf2.yahoo.com with HTTP; Mon, 14 Jan 2019 16:34:28 +0000 Date: Mon, 14 Jan 2019 16:34:26 +0000 (UTC) From: Pepe TD Vo Reply-To: Pepe TD Vo To: Shreeyansh Dba Cc: Pgsql-admin Message-ID: <1912808677.18373278.1547483666303@mail.yahoo.com> In-Reply-To: <108345181.18369387.1547483581537@mail.yahoo.com> References: <858026322.18309717.1547479488317.ref@mail.yahoo.com> <858026322.18309717.1547479488317@mail.yahoo.com> <1244007825.18357044.1547482143445@mail.yahoo.com> <108345181.18369387.1547483581537@mail.yahoo.com> Subject: Re: create tablespaces and users MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_18373276_2091759485.1547483666295" X-Mailer: WebService/1.1.12857 YahooMailNeo Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36 Content-Length: 30550 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_18373276_2091759485.1547483666295 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable what happened if I have 6 tablespaces from Oracle, should I create all tabl= espaces in Postgres as well? thank you.=C2=A0Bach-Nga No one in this world is pure and perfect.=C2=A0 If you avoid people for the= ir 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 t= o 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=20 On Monday, January 14, 2019 11:33 AM, Pepe TD Vo wro= te: =20 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 o= racle to postgres using the default postgres database.=C2=A0Do I need to bu= ild a new database name with all the tablespaces? CREATE TABLESPACE cidr_data LOCATION '/ssd1/postgresql/data';REATE TABLESPA= CE cidr_data LOCATION '/ssd1/postgresql/data';CREATE DATABASE "CIDR"=C2=A0 = =C2=A0 WITH=C2=A0=C2=A0 =C2=A0 OWNER =3D "PSmasteruser"=C2=A0 =C2=A0 ENCODI= NG =3D 'UTF8'=C2=A0 =C2=A0 LC_COLLATE =3D 'en_US.UTF-8'=C2=A0 =C2=A0 LC_CTY= PE =3D 'en_US.UTF-8'=C2=A0 =C2=A0 TABLESPACE =3D cidr_data=C2=A0 =C2=A0 CON= NECTION LIMIT =3D -1; you can keep the=C2=A0 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.=C2=A0 If you avoid people for the= ir 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 t= o 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=20 On Monday, January 14, 2019 11:27 AM, Shreeyansh Dba wrote: =20 Are you talking about migration..?? If yes, you can keep the=C2=A0 schema = / trigger same as oracle or transfer data in different schema by creating n= ew as per your requirement whereas the public is the default schema in Post= greSQL. Thanks & Regards, Shreeyansh DBA Team www.shreeyansh.com On Mon, Jan 14, 2019 at 9:39 PM Pepe TD Vo wrote: thank you.=C2=A0=C2=A0so after create the database, I need to create user a= nd tablespace with each ownershipcreate user ;create tablespace = location '' owner ; what if I transfer the schemas/triggers, etc... from oracle to postgres, ar= e they stayed the same or what?=C2=A0 What is the best way suggestion I nee= d to do? thank you. v/r,=C2=A0Bach-Nga No one in this world is pure and perfect.=C2=A0 If you avoid people for the= ir 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 t= o 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=20 On Monday, January 14, 2019 10:48 AM, Shreeyansh Dba wrote: =20 In PostgreSQL tablespaces and user all cluster level objects. tablespace i= s just another name for a folder where the Postgres server process owner (t= ypically =E2=80=9Cpostgres=E2=80=9D system user) is the owner and can write= some files.=C2=A0 In PostgreSQL All objects stored in default tablespace i.e. pg_default.=C2= =A0You can create or alter databases in the tablespace and assign ownership= for that tablespace. Commands use for creating user and tablespace:create user ;creat= e tablespace location '' owner ; Thanks & Regards, Shreeyansh DBA Team www.shreeyansh.com On Mon, Jan 14, 2019 at 8:55 PM Pepe TD Vo wrote: Hello experts,