[otrs-de] Problem mit SQL+ und der initial-insert.sql in ORACLE DB !

Stefan Borgwedel Stefan.Borgwedel at gmx.de
Don Mar 15 19:14:44 GMT 2007


Ja, hatte es genauso wie du gelöst ;-)!

-------- Original-Nachricht --------
Datum: Thu, 15 Mar 2007 15:43:41 +0100
Von: tm <tm at icon.ch>
An: "User questions and discussions about OTRS.org in German" <otrs-de at otrs.org>
CC: 
Betreff: Re: [otrs-de] Problem mit SQL+ und der initial-insert.sql in ORACLE	DB !

> Hi Stefan,
> 
> Ich denke du hast es schon geloesst. Hatte ein aehnliches problem grade 
> mit SQL+. Er hat mich bei allen "&" Zeichen gefragt welche value nun der 
> String bekommen sollte. SQL+ denkt das z.B.
> 
> &TicketID in der Zeile
> <OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>index.pl?Action=AgentZoom&TicketID=<OTRS_TICKET_TicketID>
> eine Variable ist die Abgefragt werden muss und user input benoetigt um
> das Script auszufuehren! Brauch mer aber nicht! :)
> 
> Die Loesung ist eigentlich ganz einfach! Man muss SQL+ sagen das es nicht
> mehr nach "&" & anderen special Chars Ausschau halten soll. Dies macht man
> mit dem Commando
> 
> *SQL> set define off*
> 
> Danach fragt SQL+ nicht mehr nach "&" Zeichen, und dannach laeuft auch das
> initial-insert.sql ohne probleme!
> 
> Gruss tm
> 
> PS: Wer DEFINE spaeter wieder braucht sollte es natuerlich wieder
> anschalten :)
> 
> 
> Stefan Borgwedel schrieb:
> > Hi.
> >
> > Kann mir einer helfen und erklären wie er die initial-insert.sql in die
> Oracle 9er Datenbank einspielt?
> >
> > Mit SQL+ gibt es doch da bestimmt Probleme mit den Zeilenumbrüchen in
> z.B:
> >
> > NSERT INTO notifications
> >   (notification_type, notification_charset, notification_language,
> subject, text, create_time, create_by, change_time, change_by)
> >   VALUES
> >   ('Agent::ResponsibleUpdate', 'iso-8859-1', 'en', 'Ticket responsible
> assigned to you! (<OTRS_CUSTOMER_SUBJECT[18]>)', 'Hi
> <OTRS_RESPONSIBLE_USERFIRSTNAME>,
> >
> > a ticket [<OTRS_TICKET_TicketNumber>] is assigned to you by
> "<OTRS_CURRENT_USERFIRSTNAME> <OTRS_CURRENT_USERLASTNAME>".
> > Comment:
> > <OTRS_COMMENT>
> >
> >
> <OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>index.pl?Action=AgentZoom&TicketID=<OTRS_TICKET_TicketID>
> >
> > Your OTRS Notification Master', current_timestamp, 1, current_timestamp,
> 1);
> >
> >
> >
> > Oder nicht?
> > Muss ich viell etwas anderes nehmen um das SQL einzuspeisen?
> > Denn in SQL+ braucht doch || Chr(10) || als einen Zeilenumbruch,oder?
> >
> >
> > Mfg
> > Stefan
> >   
> 

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out