Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abbruch in create_client_synonyms.sql #28

Open
Stefan-Pz opened this issue Apr 4, 2024 · 1 comment
Open

Abbruch in create_client_synonyms.sql #28

Stefan-Pz opened this issue Apr 4, 2024 · 1 comment

Comments

@Stefan-Pz
Copy link

Stefan-Pz commented Apr 4, 2024

Hallo Jürgen, diesmal auf Deutsch, ist einfacher ;-)
Ich bin fast am Ziel, für mein Client Schema "DEV" ist das Skript "grant_client_access" bereits erfolgreich durchgelaufen.
Weil ich mit einer Sandbox-DB arbeite, die nicht in der zentral-verteilten TNS names ist, habe ich in der install_client.bat einfach den connect Befehl direkt eingebaut, daran sollte es aber nicht liegen:

echo @install_scripts/grant_client_access %InstallUser% %RemoteUser% | sql PIT_OWNER/******@//*****:1522/CIAPEX19C.WORLD 
echo @install_scripts/create_client_synonyms %InstallUser% %RemoteUser% | sql DEV/******@//*****:1522/CIAPEX19C.WORLD

Das Skript create_client_synonyms bricht vorzeitig ab, beim Anlegen den ersten Synonyms.

DEFAULT_TABLESPACE
_____________________
USERS
.    - Checking whether PIT exists at user PIT_OWNER

ERR_PRE    ERR_POST
__________ ___________
E_

Boolean type: number(1, 0), 1|0

********************************************************************************
*** Registering PIT, found at PIT_OWNER at client DEV

**  Registering parameter package.
*   Clean up schema DEV

**  Remove registration of parameter package.
*   Drop synonyms
*   Drop local objects
.    - Drop table PARAMETER_LOCAL
.    - Drop view PARAMETER_VW
*   Create synonyms
.    - Create synonym param
Abgemeldet von Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.7.0.0.0

es startet damit

prompt &h3.Create synonyms
@&tools.create_synonym.sql param

Abbruch müsste dann hier erfolgen, evtl. weil PIT_USER nicht übergeben wurde und der Vergleich dann schief geht.

prompt &s1.Create synonym &1.
begin
  if '&PIT_USER.' != user then
    execute immediate 'create or replace synonym &1. for &PIT_USER..&1.';
  end if;
end;
/

Gruß
Stefan

@j-sieben
Copy link
Owner

j-sieben commented Apr 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants