Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

SQL Scripte

Empfohlene Antworten

Veröffentlicht

Hallo Leute!

Leider finde ich im Netz nicht wirklich was über SQL Scripte.:rolleyes: Könnt ihr mir sagen, was das genau ist!

Vielen Dank.

eine datei die auf .sql endet und in der sql anweisungen drinstehen .....???

Ein SQL-Script besteht aus aufgelisteten SQL-Anweisungen.

zb.

Dateiname: products.sql

---------------------------

connect system/manager

INSERT INTO system.products

VALUES(4000,'UNIX Monitor',3620);

INSERT INTO system.products

VALUES(4000,'NT Monitor', 2400);

COMMIT;

Dieses Script kannst du dann, anstatt alle Commands einzelnd einzugeben, in z.B. sqlplus aufrufen.

sqlplus starten (auf einer Linuxmachine mit dem command: sqlplus /nolog)

dann in sqlplus das Script aufrufen mit einem fuehrenden @

@products.sql

Ein Sql-Script kann auch mehrere Sql-Scripts beinhalten, die dann hintereinander ausgefuehrt werden:

Dateiname: moreScripts.sh

----------------------------

@script1.sql

@script2.sql

@script3.sql

Hier noch ein Beispiel eines Scriptes das von Oracle 0i automatisch angelegt wird und nach dem Erstellen einer Datenbank ausgefuehrt wird. Es beinhaltet einfache SQL-statements aber auch einen Aufruf eines anderen SQL-Scriptes:

Dateiname: postDBCreation.sql

connect SYS/change_on_install as SYSDBA

set echo on

spool /opt/oracle/admin/databasename/create/postDBCreation.log

@/opt/oracle/product/9.2/rdbms/admin/utlrp.sql;

shutdown ;

startup mount pfile="/opt/oracle/admin/databasename/scripts/init.ora";

alter database archivelog;

alter database open;

alter system archive log start;

shutdown ;

connect SYS/change_on_install as SYSDBA

set echo on

spool /opt/oracle/product/9.2/assistants/dbca/logs/postDBCreation.log

create spfile='/var/oracle/oradata/ databasename /spfile databasename.ora' FROM pfile='/opt/oracle/admin/databasename/scripts/init.ora';

startup ;

exit;

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.