9 More Discussions You Might Find Interesting
1. Linux
Hi,
I am using Aitech sata device sil3132, on powerpc mpc8641. The device is pci express msi compatible. I had enabled msi in device tree for powerpc but still its giving me Cannot translate IRQ index 0 and so on messages.
fsl-msi f7f41600.msi: fsl_msi_setup_hwirq: Cannot translate IRQ index 0... (0 Replies)
Discussion started by: shubha_1
0 Replies
2. Solaris
Hello,
I am trying to install Nmap on my Solaris machine. I got errors at the very last of "make" command though. Could someone point me out what I am lacking?
Thank you!
Nmap version: 5.50 (nmap-5.50.tar.bz2)
Solaris version (cat /etc/release):
Error message ( run "./configure &&... (0 Replies)
Discussion started by: fragile_it
0 Replies
3. Programming
Hi All,
I want to print new Indian Rupees sign in my report which is developed in Pro*C code.
Please help me to know:
->What necessary settings i have to do..
I am looking for free product. Please help (0 Replies)
Discussion started by: msbrd
0 Replies
4. AIX
Hi,
I have a task of setting up connectivity between Oracle 10g (AIX) and Mainframe (1 library). Went through couple of documents, forums, blogs etc. MY understanding is ODBC Generic Connectivity is free from Oracle side.
Question: (may be dumb to you)
1. Has anybody done this and would... (3 Replies)
Discussion started by: jvmani_1
3 Replies
5. Solaris
I want to configure Sun Cluster3.2 with Oracle10g ... i created 4 resources namely , logical host, sotrage, oracle -server & Listener .. all work fine butoracle resource does not come up .. though i can bring up the oracle outside sun cluster.
node1:/>clrg online ora-rg
clrg: (C450598) On... (1 Reply)
Discussion started by: fugitive
1 Replies
6. UNIX Desktop Questions & Answers
I want to setup dual monitor for the Dell Optiplex Gx520 computer.
The motherboard has an Intel Corporation 82915G Integrated Graphics
Controller.
Then I add an ATI Rage 128 video card.
The dual monitor work on Windows 2000 with the Intel chip as the
primary screen and the ATI chip... (0 Replies)
Discussion started by: TsanChung
0 Replies
7. Solaris
why is this error message keeps coming once every month. Is this a serious problem?
In the /var/adm/messages file
Nov 26 06:10:42 ids-ldap07 px: WARNING: PCI Express error report:
Nov 26 06:10:42 ids-ldap07 device_path = /pci@1e,600000/pci@0/pci@8, msg_code = 0x30, req_id = 0x340, Nov 26... (7 Replies)
Discussion started by: incredible
7 Replies
8. Solaris
Hi PHP 5 can't seem to find cc compiler even though it's there
(note, i'm installing in a zone,& am root)
Any Ideas ?
$ pwd
/tmp/php-5.2.6
$ ./configure
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... egrep... (4 Replies)
Discussion started by: stevie_velvet
4 Replies
9. UNIX for Advanced & Expert Users
Hello every body
I'm looking for the steps of installation oracle10G in solaris plateform (solaris9 or 10)
if any one have step by step guide please tell me
Thanks (2 Replies)
Discussion started by: asafwat
2 Replies
SQL::Translator::Producer::Oracle(3pm) User Contributed Perl Documentation SQL::Translator::Producer::Oracle(3pm)
NAME
SQL::Translator::Producer::Oracle - Oracle SQL producer
SYNOPSIS
use SQL::Translator;
my $t = SQL::Translator->new( parser => '...', producer => 'Oracle' );
print $translator->translate( $file );
DESCRIPTION
Creates an SQL DDL suitable for Oracle.
producer_args
delay_constraints
This option remove the primary key and other key constraints from the CREATE TABLE statement and adds ALTER TABLEs at the end with it.
quote_field_names
Controls whether quotes are being used around column names in generated DDL.
quote_table_names
Controls whether quotes are being used around table, sequence and trigger names in generated DDL.
NOTES
Autoincremental primary keys
This producer uses sequences and triggers to autoincrement primary key columns, if necessary. SQLPlus and DBI expect a slightly different
syntax of CREATE TRIGGER statement. You might have noticed that this producer returns a scalar containing all statements concatenated by
newlines or an array of single statements depending on the context (scalar, array) it has been called in.
SQLPlus expects following trigger syntax:
CREATE OR REPLACE TRIGGER ai_person_id
BEFORE INSERT ON person
FOR EACH ROW WHEN (
new.id IS NULL OR new.id = 0
)
BEGIN
SELECT sq_person_id.nextval
INTO :new.id
FROM dual;
END;
/
Whereas if you want to create the same trigger using "do" in DBI, you need to omit the last slash:
my $dbh = DBI->connect('dbi:Oracle:mysid', 'scott', 'tiger');
$dbh->do("
CREATE OR REPLACE TRIGGER ai_person_id
BEFORE INSERT ON person
FOR EACH ROW WHEN (
new.id IS NULL OR new.id = 0
)
BEGIN
SELECT sq_person_id.nextval
INTO :new.id
FROM dual;
END;
");
If you call this producer in array context, we expect you want to process the returned array of statements using DBI like "deploy" in
DBIx::Class::Schema does.
To get this working we removed the slash in those statements in version 0.09002 of SQL::Translator when called in array context. In scalar
context the slash will be still there to ensure compatibility with SQLPlus.
CREDITS
Mad props to Tim Bunce for much of the logic stolen from his "mysql2ora" script.
AUTHORS
Ken Youens-Clark <kclark@cpan.org>, Alexander Hartmaier <abraxxa@cpan.org>, Fabien Wernli <faxmodem@cpan.org>.
SEE ALSO
SQL::Translator, DDL::Oracle, mysql2ora.
perl v5.14.2 2012-01-18 SQL::Translator::Producer::Oracle(3pm)