
v2522_upute_kratke.txt

@login.sql

connect shema/...@shema

SPOOL v2522_???.lst  -- "???" je naziv licence

SELECT TO_CHAR (SYSDATE, 'DD.MM.RRRR HH24:MI:SS') FROM dual;
SELECT sys_context ('USERENV', 'HOST', 54) FROM dual;

-- Characterset baze
SELECT value FROM nls_database_parameters WHERE parameter = 'NLS_CHARACTERSET';
-- alter session set nls_length_semantics = char; -- ako je AL32UTF8 kod svakog connecta

-- Informacije o bazi i verziji APEX-a
@verzija_baze.sql
select version_no from apex_release;
show user;

ACCEPT shema CHAR PROMPT 'Unesite naziv sheme: '

set serveroutput on;

-- Informacije o vlasniku, provjeriti verziju sheme, mora biti 25.2.1
@vlasnik.sql  
@compsve &shema 


@pra_eracun2.pkb
@pra_tpka_racuni.pkb


exec sys.utl_recomp.recomp_serial (UPPER ('&shema'));
ili
exec dbms_utility.compile_schema (UPPER ('&shema'));
ili
exec dbms_utility.compile_schema (schema => UPPER ('&shema'), compile_all => false);

@compsve &shema -- ne treba pokretati komentirane naredbe

SELECT DISTINCT status FROM user_triggers;
SELECT DISTINCT status FROM user_constraints;

-- ako postoji DISABLE constraint tada napraviti ALTER TABLE xx ENABLE CONSTRAINT yy;

exec dbms_session.modify_package_state (2);

@v252_verzija.sql
@vlasnik.sql

SELECT TO_CHAR (SYSDATE, 'DD.MM.RRRR HH24:MI:SS') FROM dual;
SPOOL OFF

EXIT  -- iz SQL-a