SQL Server Oracle If else differences

I have a query in SQL Server 2008 that uses an if statement to determine how the SQL is returned. It is fairly complex but here it is in its basic form.
declare @granularity varchar(20);
begin
set @granularity = 'Month';
if (@granularity = 'Month')
begin
select count(*) as DisplayCount, yearstep, monthstep
from MyTable
group by yearstep, monthstep
order by yearstep, monthstep
end
else
if (@granularity = 'Year')
begin
select count(*) as DisplayCount, yearstep
from MyTable
group by yearstep
order by yearstep
end
end
Originally I thought the conversion would be as easy as changing the @ to :, adding a then and an end if. Not so....
Can anyone show what the Oracle equivalent would be?
Edited by: user497094 on Aug 20, 2010 12:51 PM

If you use SQL Developer tool, you have a translator to translate T-SQL to Oracle PL/SQL language.
For your example, you should get:
BEGIN
v_granularity := 'Month' ;
IF ( v_granularity = 'Month' ) THEN
BEGIN
SELECT COUNT(*) DisplayCount,
yearstep,
monthstep
FROM MyTable
GROUP BY yearstep,monthstep
ORDER BY yearstep,
monthstep;
END;
ELSE
IF ( v_granularity = 'Year' ) THEN
BEGIN
SELECT COUNT(*) DisplayCount,
yearstep
FROM MyTable
GROUP BY yearstep
ORDER BY yearstep;
END;
END IF;
END IF;
END;
I hope it helps youi
Regards,
Mireille

Similar Messages

  • SQL Server replication and size differences of source and destination databases

    I set up snapshot replication for a DB between two SQL instances.  On the source instance, the DB shows as 106612.56MB with 34663.75MB as available free space.  I expected that the replica would then end up being 71948.81MB (106612.56 - 34663.75
    because it wouldn't replicate the white space).  The resultant replica database is showing as 35522.94MB.  The required data appears to be present in the replicated DB as the SSRS reports that use it are able to find the data they look for.  But
    why the large discrepancy in size between the source and replicated DB?  The replicated DB is less than 1/2 the size of the source DB.  I've searched around and can't seem to find any explanation.  I realize this isn't mirroring so the DBs will
    not be identical in size but I did not expect to see such a large difference between the two.  I am replicating all almost all articles (tables, stored procs, etc.) with the exception of a handful of stored procedures and user-defined functions that either
    reference invalid column names in a table (vendor bug) or reference another DB that is not present on the replica's instance.  I would expect these 4-5 articles can not account for a 37000 MB size difference between the two DBs.
    Please note that this has nothing to do with transaction log size.  I am specifically talking about the database size and am not looking at the size that combines both DB and TxLog size.
    Any insight?

    Another factor could be that on the publisher the data is distributed through pages, paragraphs and extents. Depending on your fill factor and the amount of deletes and your datatype, there could be space in the pages, paragraphs and extents which have not
    been reclaimed.
    During the bcp process which is part of the snapshot application process on the subscriber all the data will be in the tables in a contiguous fashion. I would suspect this would be why you have the difference in space usage.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Query sql server- oracle

    hi, i have this query in sql server :
    select *
    from x, com y, com z
    where x.a *= y.a and x.b *=z.a
    in oracle it's not supported ( i think) a query like:
    select *
    from x, com y, com z
    where x.a (+)= y.a and x.b (+)=z.a
    what's the solution??!
    thanks!

    This may not be best solution I guess - The query is
    untested .
    select people.name , max(b_city) , max(c_city) from
    select people.name, b_city.name b_city , null r_city
    from people, city b_city, city r_city
    where people.id_birthplace(+)=b_city.id
    union all
    select people.name, null b_city , r_city.name
    from people, city r_city
    where people.id_residence(+)=r_city.id
    group by people.nameWell after fixing your typos...
    SQL> ed
    Wrote file afiedt.buf
      1  WITH people as (select 1 as id, 'Fred' as name, 1 as id_birthplace, 1 as id_residence from dual union all
      2                  select 2, 'Bob', 3, null from dual union all
      3                  select 3, 'Jim', null, 2 from dual)
      4      ,city as   (select 1 as id, 'London' as name from dual union all
      5                  select 2, 'Birmingham' from dual union all
      6                  select 3, 'Manchester' from dual)
      7  -- END OF TEST DATA
      8  select name , max(b_city) , max(r_city) from (
      9    select people.name, b_city.name b_city , null r_city
    10    from   people, city b_city, city r_city
    11    where  people.id_birthplace(+)=b_city.id
    12    union all
    13    select people.name, null b_city , r_city.name
    14    from   people, city r_city
    15    where  people.id_residence(+)=r_city.id
    16    )
    17* group by name
    SQL> /
    NAME MAX(B_CITY MAX(R_CITY
         Birmingham Manchester
    Bob  Manchester
    Fred London     London
    Jim             Birmingham
    SQL>Seems that we've gained a new unnamed person

  • SQL Server = Oracle without access to SQL Server

    I need to migrate a schema from SQL Server to Oracle but I will not be able to connect to SQL Server to do this. Can migration workbench handle this? What type of export do I need from SQL server and is there any other way to import into Oracle 10g. TIA.

    Install the workbench (a zip file) and the appropriate sql server plugin (a jar)
    Check out the scripts in Omwb\offline_capture\<plugin name for example SQLServer2K> for all the details in code.
    The format is basically <database name>\<meta table name>.dat
    columns separated by an end of column character (which is configurable) and rows separated by an end of row character (which is also configurable).
    Turloch
    Oracle Migration Workbench Team

  • ODBC connection between SQL Server,Oracle Failure

    Dears,,
    I have Oracle database and SQL Server on another server.
    I installed Oracle client on SQL Server to enable me connect to Oracle Server.
    Now. i can connect from SQL Server to Oracle by SQL Enterprise Manager.
    But i can't connect by ODBC:
    When trying access Oracle ODBC Driver Configuration
    It gave me error as following:
    Unable to connect
    SQLSTATE=08004
    Oracle ODBC Ora ORA-12154:TNS Couldn't resolve the connect identifier specified
    Thanks,,
    Edited by: Eng.Mohammed on Apr 28, 2009 1:36 AM

    Dears,,
    I solved my issue as following . . .
    Adding enviornment variable called TNS_ADMIN
    and set it =<the path of tnsname.ora directory>.
    Best regards,,

  • Connect SQL Server From Oracle

    Hi Experts,
    I want's to made connection from Oracle 10g to Ms SQL Server 2000. I made necessary entries in receptive file, but still getting an error...
    Setting info .....
    */hs/initMYSQLSERVERDSN.ora*
    HS_FDS_CONNECT_INFO = MYSQLSERVERDSN
    HS_FDS_TRACE_LEVEL = OFF
    LISTENER.ORA
    LISTENERMYSQLSERVERDSN =
    (ADDRESS_LIST=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (ADDRESS=(PROTOCOL=ipc)(KEY=PNPKEY)(queuesize=80)))
    SID_LIST_LISTENERMYSQLSERVERDSN=
    (SID_LIST=
    (SID_DESC=
    (SID_NAME=MYSQLSERVERDSN)
    (ORACLE_HOME = E:\oracle\product\10.1.0\db_1)
    (PROGRAM=hsodbc)
    TNSNAME.ORA
    MYSQLSERVERDSN =
    (DESCRIPTION=
    (ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522))
    (CONNECT_DATA=(SID=MYSQLSERVERDSN))
    (HS=OK)
    LISTENER start successfully, and tnsping working fine.
    But after createing db link , when i execute query desc spt_datatype_info@mysqlserverdsn;
    I am geting an error message in listenermysqlserverdsn.log file
    TNS-12518: TNS:listener could not hand off client connection
    TNS-12560: TNS:protocol adapter error
    Please help me out from this issue.
    Thanks in Advance
    Mani

    You OS ?
    I have also done the same.
    I did install SQL Server & Oracle on another machine with Windows.
    For more pls visit.
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    Aqeel Nawaz

  • Reading milliseconds from Sql server into oracle 10g

    Hi,
    We have a very time sensitive pressing requirements to be addressed immediately.
    We need to read the date time column from sql server 2008 into oracle 10g.
    We have a dblink established between the two servers and have tried to use sql server and sql native client 10 driver to read the dates from sql into oracle.This we are able to do very successfully.
    The issue is in reading milliseconds stored in sql server.The millisecond part comes in as 00000 from sqlserver to oracle.These milliseconds are needed to identlfy the unique records.
    For instance
    SQL SERVER Oracle
    source_id source id
    01/01/2012 6:30:35:456 01/01/2012 6:30:35:000000.
    Im issuing my query through Toad via Oracle to remote sql server using a dblink which connects using HS ODBC connection to sql server 2008(remote).
    We have no control over sql server Db as this is remote third party DB.We just have select access to their tables to bring into our own oracle DB.
    Any insight or help will be much appreciated.

    Hi,
    Could you please send the following information -
    - what version of HSODBC are you using ? Is it a 10.2 version ?
    - what is the SQL*Server datatype of the column you are reading ?
    - from Oracle could you issue -
    describe sql_server_table@hsodbc
    - what is the Oracle datatype shown for the column ?
    Could you also run your tests using SQLPLUS instead of TOAD ? We don't support TOAD and need to know if the problem also happens when using SQLPLUS, to avoid it being a TOAD problem.
    Also, 10.2 HSODBC is now desupported and you should be using the 11g Database Gateway for ODBC (DG4ODBC) which is a direct replacement for HSODBC. To use DG4ODBC your RDBMS needs to be at 10.2.0.4 or higher and DG4ODBC should be installed in a completely separate ORACLE_HOME from the existing 10.2 install.
    Regards,
    Mike

  • Bidirectional Database Sync b/w SQL server and ORACLE

    Hi,
    We have a Oracle 10g database and we have multiple SQL Server 7.0 databases.
    1. The data changes made at Oracle database should be in sync with Sql Servers and vice versa depending upon several Conditions and vice versa (Sql Server - Oracle)
    2.This has to happen automatically (not manually) at some particular interval of time everyday.
    3. Only the “Delta” data(added/modified/deleted) has to be updated in both databases.
    Does Oracle streams provide the above. If so how do we implement it.
    We found Database Sync but it is uni directional from Oracle to SQL server.
    Is there any other tool available other than Oracle Streams
    Thanks...

    If the data is available in Oracle of what value is there in duplicating it in another product. Just learn how to do heterogeneous queries and leave the data where it is.

  • Transfering information between Oracle 8 and SQL Server 2000

    I want to transfer some of the data stored in 4 different tables in my Oracle database and easy as possible to my SQL Server 2000 database. I found the import option in SQL2k which uses ODBCconnection to the Oracle but it needs the migration suit as far as I know. At the downloadarea there are only plug-ins for SQL Server 7 but not 2000.
    Am I even on the right track or is there any other way of accomplishing this?

    is there any known problem if I install Oracle 10g EE
    on the same machine where Sql Server 2000 EE is
    install?It's presently undocumented, but some of the ORACLE.EXE process threads are known to get stuck in an infinite loop whenever a SQL Server database is running on the same box. The infinite loops cause the SQL Server database to eventually shutdown, and then the loops are broken and Oracle returns to normal. Stack traces have revealed something like this, which would suggest that the Oracle process is actually communicating with SQL Server:
    Oracle:  laughAtGirlieDatabase()  /* infinite loop */
    SQL:     exit();-)

  • SQl server to Oracle -- Replicat error command disallowed by current ..

    I am trying to set replication b/w sql serve *& oracle..
    Source -- SQL server 2005 SP4.
    Target - Oracle 11.2.0.3 - using ASM ..single instance..
    The error log is ....
    2012-02-10 17:33:47 ERROR OGG-00664 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: OCI Error beginning session (status = 15000-ORA-15000: command disallowed by current instance type).
    2012-02-10 17:33:47 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: PROCESS ABENDING.
    2012-02-10 17:34:00 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (oracle): edit params RCATD1.
    2012-02-10 17:34:10 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI command (oracle): start replicat RCATD1.
    2012-02-10 17:34:10 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command received from GGSCI on host 10.1.7.80 (START REPLICAT RCATD1 ).
    2012-02-10 17:34:10 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: REPLICAT RCATD1 starting.
    2012-02-10 17:34:10 INFO OGG-00995 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: REPLICAT RCATD1 starting.
    2012-02-10 17:34:11 ERROR OGG-00664 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: OCI Error beginning session (status = 15000-ORA-15000: command disallowed by current instance type).
    2012-02-10 17:34:11 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, rcatd1.prm: PROCESS ABENDING.
    edit params RCATD1
    REPLICAT RCATD1
    SOURCEDEFS /home/oracle/GG/dirdef/catalog.def
    USERID ggs,PASSWORD ggs
    MAP dbo.tmp_webskuchs,TARGET catalog.tmp_webskuchs;
    the steps I am doing are
    [oracle@fl1dvmatgdb2 GG]$ ./ggsci
    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.1.1.1.2 OGGCORE_11.1.1.1.2_PLATFORMS_111004.2100
    Linux, x64, 64bit (optimized), Oracle 11g on Oct 4 2011 23:49:46
    Copyright (C) 1995, 2011, Oracle and/or its affiliates. All rights reserved.
    GGSCI (fl1dvmatgdb2) 1> dblogin userid ggs, password ggs
    Successfully logged into database.
    GGSCI (fl1dvmatgdb2) 2> start replicat RCATD1
    Sending START request to MANAGER ...
    REPLICAT RCATD1 starting
    GGSCI (fl1dvmatgdb2) 3> info RCATD1, detail
    REPLICAT RCATD1 Initialized 2012-02-10 15:28 Status STOPPED
    Checkpoint Lag 00:00:00 (updated 02:19:44 ago)
    Log Read Checkpoint File dirdat/l2000000
    First Record RBA 0
    Extract Source Begin End
    dirdat/l2000000 * Initialized * First Record
    Current directory /home/oracle/GG
    Report file /home/oracle/GG/dirrpt/RCATD1.rpt
    Parameter file /home/oracle/GG/dirprm/rcatd1.prm
    Checkpoint file /home/oracle/GG/dirchk/RCATD1.cpr
    Checkpoint table GGS.CHKPT
    Process file /home/oracle/GG/dirpcs/RCATD1.pcr
    Stdout file /home/oracle/GG/dirout/RCATD1.out
    Error log /home/oracle/GG/ggserr.log
    can anybody give me a clue why I am getting ora-15000 on GG
    Thanks in advance..
    Edited by: 898080 on Feb 10, 2012 2:47 PM

    Konsultant wrote:
    Hi all,
    Other details: every time database is started it give message "ORA-15110: no diskgroups mounted" then we manually mount the disk and command
    complete successfully. You can find diskgroup name/s with this query :
    SQL> select name from v$asm_diskgroup;Then use that diskgroup name in the command that will modify spfile's parameter [ASM_DISKGROUPS|http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asminst.htm#BHCCHHIG] :
    SQL> alter system set asm_diskgroups = 'DISKGROUP_NAME' scope=spfile;
    when we execute some sql then recievese error "ORA-01219: database not open: queries allowed on fixed tables/views only". This simply means that your database is not open.
    Look:
    SQL> startup force mount;
    ORACLE instance started.
    Total System Global Area  209715200 bytes
    Fixed Size                  1248140 bytes
    Variable Size              92275828 bytes
    Database Buffers          113246208 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    SQL> select status from v$instance;
    STATUS
    MOUNTED
    SQL> select * from my_table;
    select * from my_table
    ERROR at line 1:
    ORA-01219: database not open: queries allowed on fixed tables/views only
    SQL> alter database open;
    Database altered.
    SQL> select status from v$instance;
    STATUS
    OPEN
    SQL> select * from my_table
      no rows selected
    when i execute alter database open command recieving "ORA-15000: command disallowed by current instance type".Most likely because your environment is set for ASM instance , and in the case of the 'alter database open' command, environment should be set for RDBMS . See disscusion about that ORA-15000: command disallowed by current instance type
    another question is that is it possible that i just drop and recreate the database and add the current diskgroups to new created database.yes

  • Problem : SQL Server Delete Statement vs Oracle Delete Statement

    Hi,
    I am currently involved in a SQL Server - Oracle Migration effort and I have hit a roadblock on one of the queries.
    I have created two tables named DUMMY and DUMMY1 in MSDE with the same structure :-
    CREATE TABLE DUMMY
         CLIENT_ID                                             INT,
         NME                                                   VARCHAR(80),
         BATCH_ID                                              INT,
         CATALOG_NAME                                          VARCHAR(50),
         DATA_SOURCE                                           VARCHAR(50)
    GOI have a DELETE statement that deletes from the two tables, by selecting common data using Joins:-
    DELETE  DUMMY
    FROM      DUMMY src
            JOIN
         DUMMY1 dst 
              ON
                  src.batch_id = dst.batch_id 
              AND src.catalog_name = dst.catalog_name 
              AND src.data_source = dst.data_source
         WHERE
                   src.batch_id     = 1
              AND      src.catalog_name = '1'
                  AND      src.data_source  = '1'Now, I have created the same Tables ( DUMMY and DUMMY1 ) in Oracle :-
    CREATE TABLE DUMMY
         CLIENT_ID                                             NUMBER(5),
         NME                                                      VARCHAR2(80),
         BATCH_ID                                             NUMBER(10),
         CATALOG_NAME                                  VARCHAR2(50),
         DATA_SOURCE                                     VARCHAR2(50)
    )I have written a Delete statement to mimic the fucntionality in this manner :-
    DELETE FROM 
              DUMMY 
    WHERE
                   client_id,
                   nme,
                   batch_id,
                   catalog_name,
                   data_source
              IN
                   SELECT *
                   FROM
                        DUMMY  src
                                           JOIN 
                        DUMMY1  dst 
                             ON
                                  src.batch_id = dst.batch_id
                             AND      src.catalog_name = dst.catalog_name
                             AND      src.data_source = dst.data_source
                        WHERE
                                  src.batch_id = 1
                             AND      src.catalog_name= '1'
                             AND      src.data_source = '1'
              )However, I keep getting this error whe I try to test it :-
    ORA-06550: line 1, column 89:
    PL/SQL: ORA-00913: too many values
    Can you please help me modify the query to simulate the same functionality as the orignial SQL Server Query ?
    Thanks,
    Sandeep

    There is probably a mismatch between the number of columns.
    Try this * Not Tested *
    DELETE FROM 
              DUMMY 
    WHERE
                   client_id,
                   nme,
                   batch_id,
                   catalog_name,
                   data_source
              IN
                   SELECT      src.client_id,
                   src.nme,
                   src.batch_id,
                   src.catalog_name,
                   src.data_source
                   FROM
                        DUMMY  src
                                           JOIN 
                        DUMMY1  dst 
                             ON
                                  src.batch_id = dst.batch_id
                             AND      src.catalog_name = dst.catalog_name
                             AND      src.data_source = dst.data_source
                        WHERE
                                  src.batch_id = 1
                             AND      src.catalog_name= '1'
                             AND      src.data_source = '1'
              );

  • Report Builder 1.0 for SQL Server Reporting Services 2008 R2

    We are trying to implement Ad-Hoc Reporting using SSRS 2008 R2.
    First of all, it is very unhelpful that all SSRS books are for either 2008 or 2012, even though SSRS has major changes in 2008 R2 compared to 2008.
    Our instructional materials indicate that we should build Report Models to abstract out our databases into terms familiar to our business users.
    The problem we are having is the difference in functionality between Report Builder 1.0 and Report Builder 3.0. Report Builder 3.0 is touted as having the modern, ribbon based interface that is supposed to make end-users feel more comfortable.  However,
    all the documentation says that end users are supposed to use Report Builder 1.0 for Ad-Hoc Reporting.  And, it seems, that the reports generated by Report Builder 1.0 are not round-trip compatible with all the other reporting tools for SSRS 2008 R2.
    The documentation we have illustrates that Report Builder 1.0 is nice for Ad-Hoc reporting, because is based on connecting directly to Report Models, and the end users can directly drag-and-drop entities and fields into their reports.
    When we try working with Report Builder 3.0, it seems we must first connect to the Report Model as a Data Source and then build a Dataset query on the Report Model.  Only then are some entity attributes available to be dropped into the report. 
    If the user decides another source column is needed, they have to go back, edit the query, save the query, and then drag the column from the Dataset to the report.  This does not seem end user friendly at all!
    We are also concerned that if we train our users on the seemingly soon-to-be-obsolete Report Builder 1.0, and get them used to having direct Report Model access, that at some point we will have to move them to the Dataset-interrupted approach of Report Builder
    2+.  Highlighting this perception of impending obsolescence of Report Builder 1.0 is that in our shop that is starting with SSRS 2008 R2, we cannot figure out how to get a copy of Report Builder 1.0 in the first place.
    We just don't see our end users being savvy enough to handle the steps involved with creating Datasets on top of Report Model Data Sources.  So we would have to build the Datasets for them.  But in that case, what point is there in creating any
    Report Models in the first place if DBAs are the ones to make Datasets?
    As such, it is hard to envision a forward-looking SSRS implementation that has the end user ease-of-use Ad-Hoc reporting that the SSRS 2008 documentation presents.
    What is it that Microsoft actually wants/expects SSRS implementers to do?
    Dan Jameson
    Manager SQL Server DBA
    CureSearch for Children's Cancer
    http://www.CureSearch.org

    Hi Dan,
    Report Builder 1.0
    Simple template-based reports
    Requires report model
    Supports only SQL Server, Oracle, and Analysis Services as data sources
    Supports RDL 2005
    Bundled in SSRS
    Report Builder 2.0 or later
    Full-featured reports as the BIDS Report Designer
    Doesn't require (but supports) report models
    Supports any data source
    Supports RDL 2008
    Available as a separate web download
    In your scenario, you want to use Report Builder 1.0 in SQL Server Reporting Services 2008 R2, I am afraid this cannot achieve. Report Builder 1.0 is available in the box in either SQL 2005 or SQL 2008. It is not available as a separate client apps and is
    only available as a click once application.
    Report Builder 1.0
    Report Builder 3.0
    Thank you for your understanding.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • How do I connect to a SQL Server DB?

    I have a menu designed in Flash which has to pull back
    database records, how do I go about that? Every tutorial seems to
    be different and none are exactly what I am looking for.
    thanks
    Em

    Very true. This is a wide open field of decisions you have to
    make.
    First choice you have is sending via URL variable encoding or
    XML. That will define your tasks needed in ASP. As well would you
    want to simply (most beginners would) just have the ASP send the
    URL variables or XML with Response.write or are you planning a web
    service type of app.
    For Flash you will find the examples in the docs are all you
    need to get the data from the ASP and send back if necessary. Still
    the choices depend on the server (ASP) choices.
    For URL Encoding from ASP:
    LoadVars.load
    For URL Encoding to and from ASP:
    LoadVars.sendAndLoad
    For XML from ASP:
    XML.load
    For XML to and from ASP:
    XML.sendAndLoad
    For overall details on data integration
    Many folks like using the Flash 8 Pro DataGrid component for
    a quick UI to display a SQL select result. You would populate it
    using
    DataGrid.addItem.
    You can also bind the DataGrid to data providers such as an
    array so it updates when the data source changes.
    You also can use many of the Flash 8 Pro UI components in a
    data integration that binds them to a data connector component:
    FLash
    8 Pro data binding component approach. You should review
    Data
    Integration in the Flash Docs for this approach.
    If you need some decisions:
    1. Select a scripting language: ASP, PHP, ASP.Net, JSP, Perl,
    ColdFusion
    2. Select the database: mySQL, SQL Server, Oracle
    3. Decide how you want to send data to and from Flash (XML,
    Url variables, Web Services)
    4. Write a server script that can do the database work you
    want and just use html forms to prove those scripts out.
    5. Look up the docs in Flash for #3 and do the Flash UI.
    You might see from this that Flash or HTML would work with
    the same server scripts.

  • SQL Server 2005 OWB Source

    Hello All
    Iam using OWB 10Gr2 on the win2003 box. we have a source in MS Sql server 2005. I followed some documents and modified the below files as required.
    Sql server,Oracle database and OWB are on same server. Sql services are running fine and the ODBC is tested sucessfully. Database and OWB are also running perfectly.
    1. Created an ODBC pointing to the sql server in control panel by name SQLODBC.
    2. Modified the tns file entry as follows
    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 10.101.3.14)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    SQLODBC =
         (DESCRIPTION =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 10.101.3.14)(PORT = 1521))
         (CONNECT_DATA =
         (SID = SQLODBC)
         (HS = OK)
    3. Modified Lisiner.ora file as follows
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = SQLODBC)      
    (ORACLE_HOME= C:\oracle\product\10.2.0\db_1)
    (PROGRAM = hsodbc)
    4. from the (C:\oracle\product\10.2.0\db_1\hs\admin) i renamed the inithsodbc to initSQLODBC.ora and modified the connects as follows
    # HS init parameters
    HS_FDS_CONNECT_INFO = SQLODBC
    HS_FDS_TRACE_LEVEL = 4
    After this above 4 steps i tested the lisitner
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    C:\Documents and Settings\Administrator> lsnrctl status SQLODBC
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 25-APR-2011 08:24
    :34
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.101.3.14)(PORT=1521))
    (CONNECT_DATA=(SID=SQLODBC)(HS=OK)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
    ction
    Start Date 24-APR-2011 06:50:54
    Uptime 1 days 1 hr. 33 min. 41 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
    ra
    Listener Log File C:\oracle\product\10.2.0\db_1\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=wlsuresh.uae.radil.loc)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "SQLODBC" has 1 instance(s).
    Instance "SQLODBC", status UNKNOWN, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orclXDB" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    Service "orcl_XPT" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    The command completed successfully
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    When iam trying to create an new module under OWB-Non oracle-ODBC it is throwing error.
    Iam passing user id and password in double quotes. when iam trying to browse schemas it is throwing the following error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][H006] The init parameter <HS_FDS_CONNECT_INFO> is not set. Please set it in init<orasid>.ora file.
    ORA-02063: preceding 2 lines from OWB_106
    Kind and quick help is highly appreciated.
    Thx & reg
    S.Gyazuddin

    Hello David
    After doing some changes iam able to ping my DNS entry which i did in TNSNAMES>ORA file.
    when i try to create DB link using the blow command and testing the link it is throwing error
    create database link testingMSQL connect to SA identified by SA using 'SQLODBC';
    +++++++++++++++++ERROR++++++++++++++
    ora-12505 TNS lisitner does not currently know of SID given in connect discriptor
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    My lisitner.oar file is as follows
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (SID_DESC=
    (SID_NAME=SQLODBC)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM=hsodbc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = wlsuresh.uae.radil.loc)(PORT = 1521))
    Reg
    S.gyazuddin

  • Help Configuring Transparent Gateway for Ms Sql Server

    I have Installed Oracle 9.2.0.1.0 with Transparent Gateway for Ms Sql Server.
    Followed the configuration furnished therein the Documents for Tnsnames.ora & Listener.ora.
    Connection to Sql Server 2000 is NOT SUCCESSFUL. Trace File contents from Tg4sql is furnished below :
    Oracle Corporation --- WEDNESDAY DEC 18 2002 22:32:50.625
    Heterogeneous Agent Release
    9.2.0.1.0
    HS Agent diagnosed error on initial communication,
    probable cause is an error in network administration
    Network error 2: NCR-00002: NCR: Invalid usage
    Note :- Sql Server & Oracle Server are on the same Machine running of Windows 2000 Server.
    Am i missing something !!!
    TIA

    Please guide me, would appreciate your suggestions to solve this heck....
    TIA

Maybe you are looking for

  • Editing Drop Down Menus in Contribute

    I have a client who is using contribute and wants to edit drop down menus. These drop down menus link to individual pdfs and she changes the names of the pdfs on a regular basis and wants to update these links in the drop down menus. The site was cre

  • Error using a Array of Loaders with externals SWFs, Camera and Gyroscope ANE

    Hi all. Unfortunately I have no idea where could be problem. I am developing an AR mobile game, currently only for Android, since I can not make the Gyroscope ANE to work in IOS 6.1.3, where no data is returned from the gyroscope (this may be other f

  • Presence Visible (Print Only) not working

    I have an shaded object that I want to not be visible on screen, but print only.  I've done this many times on other forms.  The object doesn't respond. When I preview the form, the object still shows. This is a four page form. Page one was copied to

  • ABAP roles v/s Portal Roles

    Hi All, Currently I was going through  EP security docs where I came across this "An important difference between ABAP roles and Portal roles is that in the portal,no authorizations are defined for the backend application itself. This must still be d

  • Optical Drive Error message 0x80020022

    I am burning data DVDs and have had 8 out of 14 failures with Error code 0x80020022, and a message about loss of communication with optical drive. Has anyone solved this problem as I see old postings in 2009?