bonjour, a tous
je me souviens plus trop la maniere de faire un bon script unix (redhat 5.4) ou sql (oracle 11GR2)
donc vos avis sois sous forme sh ou .sql
je voudrais cette execution de commande sql oracle sous from de script avec une verification dans un fichier que tout se passe bien step by step
[oraxtp@EBxxxxxxxxxxx ~]$ echo $ORACLE_SID
xtp2
[oraxtp@EBxxxxxxxxxxx ~]$ sqlplus '/as sysdba'
SQL*Plus: Release 11.2.0.1.0 Production on Tue Jun 18 14:32:36 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
>GRANT READACCESS_ROLE TO BO_REPORTING;
>GRANT SELECT ANY TABLE TO BO_REPORTING;
SQL> conn bo_reporting/toto
Connected.
SQL> SHOW user
USER IS "BO_REPORTING"
SQL>SELECT count(*) FROM op.v_xxx_bankfacilities;
COUNT(*)
----------
90
un simple spool devrait aller sqlplus ou encore mieux un script sh
LOGIN/PASSWORD@BASE @SCRIPT.SQL
Merci d'avance pour votre aide et bon week end
Partager