Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qfOfJ-00ApDX-I8 for pgsql-sql@arkaria.postgresql.org; Sun, 10 Sep 2023 17:56:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qfOfI-00B5Rh-2e for pgsql-sql@arkaria.postgresql.org; Sun, 10 Sep 2023 17:56:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qfOfH-00B5R0-N8 for pgsql-sql@lists.postgresql.org; Sun, 10 Sep 2023 17:56:07 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qfOfC-003p0O-Dt for pgsql-sql@lists.postgresql.org; Sun, 10 Sep 2023 17:56:06 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-1d5a8cb70d3so569409fac.0 for ; Sun, 10 Sep 2023 10:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heimdalldata.com; s=google; t=1694368561; x=1694973361; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YaBTY32hxwnjg3Qvwv5VHKzgstZNKiY8d+eZyJmD7N4=; b=SG4ToN/69S+5WkgayTttnX42QQE+zUmJW9iwoq+t8gPEZ4j/npB30OC3XzEYYbDO+T /BMS/NI6/qZ95eEzDvBMz3ixLqaWDQPlUumnXY91J0we23BQot2W01/tSrhbWdcQjxWV ugTAfhRkKwvBNeW7ZLyWuw6NLIw2Ud2L7T1f8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694368561; x=1694973361; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YaBTY32hxwnjg3Qvwv5VHKzgstZNKiY8d+eZyJmD7N4=; b=Q1p/muCQb78CVkcSVf3HogMYSAWk0VmBdmOZzAcpNNCKC+leAdNfIRtivpLjfplr9v VUeHe3oSXAUcorVJ3n7nIFVsNdyzIDtOEI1iCh801jsl/1y4cdzFeTc7de0pun1dQVsN kYKN6SUz3aYrwMPgKKYgIHYk74dH+eCxMuEmo7E8yIrYnkEGqmQAdbiujuJgeuYAj9e3 bPzDWteh2WVwMasQKv4I7cYuKx3EDW2QGUf8WmrP1IeEw4X3DPKPzgPb/OUeLffPWIxi N0ERd/mHn4TxlJMjHNgS3sYin0VrhXKuE5RfZ+aVKu3LBMxZZ9OPHH7OwTfjNdmb2bbk y7Jg== X-Gm-Message-State: AOJu0YyAq4dZkFoangtoMn6TrJilZpeIcvZGwowvTvKPDqUHThRYOrw/ TH5G8nyVLxA9kOPuf8k/I4ki4yyxTnodo4X7/sZc/Q== X-Google-Smtp-Source: AGHT+IEdFRWTcRZbpN4C2Ton7MCGYwFSORmZzfENeO+4ZO1eIEXeVMaD3/pXYL/Q6sUp/kQESJqT2onmjqDA14bV3Ms= X-Received: by 2002:a05:6870:210f:b0:1c0:d0e8:8fda with SMTP id f15-20020a056870210f00b001c0d0e88fdamr10223644oae.16.1694368561619; Sun, 10 Sep 2023 10:56:01 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Erik Brandsberg Date: Sun, 10 Sep 2023 13:55:50 -0400 Message-ID: Subject: Re: How to handle application connectivity change when moving from Oracle to Postgres in GCP To: kunwar singh Cc: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000003bfa20060504ec61" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003bfa20060504ec61 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Keep in mind that it is likely that a significant portion of the data access code may need to be rewritten unless you are using an ORM that does the conversion for you. Most apps can't be migrated directly from Oracle to Postgres. Based on the questions you are asking, I seriously suggest you contact a company that assists with migrations in order to answer your questions and highlight the issues you may be facing. On Sun, Sep 10, 2023 at 1:43=E2=80=AFPM kunwar singh wrote: > Hi Listers, > > Say we have this App->DB connectivity Model. > > APP1 > Contains synonyms which point to objects under APP1. > > APPOWN > Contains the tables, indexes > > And it is a Java application that connects to APP1. > > Now when the database is switched from Oracle 19c onprem to CloudSQL > Postgres say v15. > Questions that I have: > > 1. What needs to be done at the database end in terms of schema setup in > order to ensure the application is able to connect to the relevant tables > without any concerns? > 2. Do I need to create users APP1 and APPOWN in postgres? If so, what > privileges are required to be assigned to these? > 3. How to tie them with service accounts? > 4. With which username/service account does the application make > connection to the database? > > I still don't understand user/schema concepts in postgres tbh as I'm > still a noob :) > > > > -- > Cheers, > Kunwar > --0000000000003bfa20060504ec61 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Keep in mind that it is likely that a significant portion = of the data access code may need to be rewritten unless you are using an OR= M that does the conversion for you.=C2=A0 Most apps can't be migrated d= irectly from Oracle to Postgres.=C2=A0 Based on the questions you are askin= g, I seriously suggest you contact a company that assists with migrations i= n order to answer your questions and highlight the issues you may be facing= .=C2=A0=C2=A0

On Sun, Sep 10, 2023 at 1:43=E2=80=AFPM kunwar singh <krishsingh.111@gmail.com> wro= te:
Hi Listers,

Sa= y we have this=C2=A0App->DB connectivity Model.

APP1
Contains synonyms which point=C2=A0to objects under APP1.

APPOWN
Contains the tables, indexes
=

And it is a Java application that connects to APP1.

Now when the database is switched from Oracle 19c onp= rem to CloudSQL Postgres say v15.
Questions that I have:

1. What needs to be done at the database end in terms of s= chema setup in order to ensure the application is able to connect to the re= levant tables without any concerns?=C2=A0
2. Do I need to create = users APP1 and APPOWN=C2=A0in postgres? If so, what privileges are required= to be assigned to these?
3. How to tie them with service account= s?
4. With which username/service account does the application ma= ke=C2=A0 connection to the database?

I still don&#= 39;t understand user/schema=C2=A0concepts in postgres tbh as I'm still= =C2=A0a=C2=A0noob :)=C2=A0



--
Cheers,
Kunwar
--0000000000003bfa20060504ec61--