Help with Oracle 9i LIKE clauses

I ma converting an application running against SQLServer to Oracle 9i and have run into two problems:
1.SQLServer is case-senstive by default but Oracle 9i is, can I change the settings so that it is not.
2.Oracle does not support the [] operators within a LIKE clause
In SQLServer I have a like clause of the form:

Sorry(accidental KeyPress)
2. In SQLServer have a like clause of the form
LIKE 'fred[;:., ]'
which would match fred, and fred followed by any of the characters in the []
how can I do this in Oracle 9i.
     

Similar Messages

  • Help with oracle 11g pivot operator

    i need some help with oracle 11g pivot operator. is it possible to use multiple columns in the FOR clause and then compare it against multiple set of values.
    here is the sql to create some sample data
    create table pivot_data ( country_code number , dept number, job varchar2(20), sal number );
    insert into pivot_data values (1,30 , 'SALESMAN', 5000);
    insert into pivot_data values (1,301, 'SALESMAN', 5500);
    insert into pivot_data values (1,30 , 'MANAGER', 10000);     
    insert into pivot_data values (1,301, 'MANAGER', 10500);
    insert into pivot_data values (1,30 , 'CLERK', 4000);
    insert into pivot_data values (1,302, 'CLERK',4500);
    insert into pivot_data values (2,30 , 'SALESMAN', 6000);
    insert into pivot_data values (2,301, 'SALESMAN', 6500);
    insert into pivot_data values (2,30 , 'MANAGER', 11000);     
    insert into pivot_data values (2,301, 'MANAGER', 11500);
    insert into pivot_data values (2,30 , 'CLERK', 3000);
    insert into pivot_data values (2,302, 'CLERK',3500);
    using case when I can write something like this and get the output i want
    select country_code
    ,avg(case when (( dept = 30 and job = 'SALESMAN' ) or ( dept = 301 and job = 'SALESMAN' ) ) then sal end ) as d30_sls
    ,avg(case when (( dept = 30 and job = 'MANAGER' ) or ( dept = 301 and job = 'MANAGER' ) ) then sal end ) as d30_mgr
    ,avg(case when (( dept = 30 and job = 'CLERK' ) or ( dept = 302 and job = 'CLERK' ) ) then sal end ) as d30_clrk
    from pivot_data group by country_code;
    output
    country_code          D30_SLS               D30_MGR               D30_CLRK
    1      5250      10250      4250
    2      6250      11250      3250
    what I tried with pivot is like this I get what I want if I have only one ( dept,job) for one alias name. I want to call (30 , 'SALESMAN') or (301 , 'SALESMAN') AS d30_sls. any help how can I do this
    SELECT *
    FROM pivot_data
    PIVOT (SUM(sal) AS sum
    FOR (dept,job) IN ( (30 , 'SALESMAN') AS d30_sls,
              (30 , 'MANAGER') AS d30_mgr,               
    (30 , 'CLERK') AS d30_clk
    this is a simple example .... my real life scenario is compliated with more fields and more combinations .... So something like using substr(dept,1,2) won't work in my real case .
    any suggestions get the result similar to what i get in the case when example is really appreciated.

    Hi,
    Sorry, I don't think there's any way to get exactly what you requested. The values you give in the PIVOT ... IN clause are exact values, not alternatives.
    You could do something like this to map all alternatives to a common value:
    WITH     got_dept_grp     AS
         SELECT     country_code, job, sal
         ,     CASE
                  WHEN  job IN ('SALESMAN', 'MANAGER') AND dept = 301 THEN 30
                  WHEN  job IN ('CLERK')               AND dept = 302 THEN 30
                                                                     ELSE dept
              END     AS dept_grp
         FROM     pivot_data
    SELECT     *
    FROM     got_dept_grp
    PIVOT     (     AVG (sal)
         FOR     (job, dept_grp)
         IN     ( ('SALESMAN', 30)
              , ('MANAGER' , 30)
              , ('CLERK'   , 30)
    ;In your sample data (and perhaps in your real data), it's about as easy to explicitly define the pivoted groups individually, like this:
    WITH     got_pivot_key     AS
         SELECT     country_code, sal
         ,     CASE
                  WHEN  job = 'SALESMAN' AND dept IN (30, 301) THEN 'd30_sls'
                  WHEN  job = 'MANAGER'  AND dept IN (30, 301) THEN 'd30_mgr'
                  WHEN  job = 'CLERK'    AND dept IN (30, 302) THEN 'd30_clrk'
              END     AS pivot_key
         FROM    pivot_data
    SELECT     *
    FROM     got_pivot_key
    PIVOT     (     AVG (sal)
         FOR     pivot_key
         IN     ( 'd30_sls'
              , 'd30_mgr'
              , 'd30_clrk'
    ;Thanks for posting the CREATE TABLE and INSERT statements; that really helps!

  • I need help with oracle

    Hi,
    I need some help... if someone can help its great.
    I need to make a statement in Oracle SQL that read data from a file and insert in a Oracle Database ... if someone can show me the syntax of it i appreciate..
    Thanks

    Okay, I see you followed the advice in that other thread and started a new post for you question. Congratulations. Your next lesson in forum etiquette is to give your posts a more relevant subject. Pretty much everybody who posts here needs help with oracle; if they need help with cooking catfish they've come to the wrong place.
    It that other thread I suggested using SQL*Loader or External Tables might be a more suitable solution. Find out more.
    Cheers, APC

  • Help with: oracle.toplink.essentials.exceptions.ValidationException

    hi guys,
    I really need ur help with this.
    I have a remote session bean that retrieves a list of books from the database using entity class and I call the session bean from a web service. The problem is that when i display the books in a jsp directly from the session bean everything works ok but the problem comes when I call the session bean via the web service than it throws this:
    Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.
    at oracle.toplink.essentials.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:887)
    at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:233)
    at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:105)
    at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:208)
    at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:330)
    at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:425)
    at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:424)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:278)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:265)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:129)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:315)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:176)
    ... 29 more
    This happens when I test the web service using netbeans 6.5.
    here's my code:
    session bean:
    ArrayList bookList = null;
    public ArrayList retrieveBooks()
    try
    List list = em.createNamedQuery("Book.findAll").getResultList();
    bookList = new ArrayList(list);
    catch (Exception e)
    e.getCause();
    return bookList;
    web service:
    @WebMethod(operationName = "retrieveBooks")
    public Book[] retrieveBooks()
    ArrayList list = ejbUB.retrieveBooks();
    int size = list.size();
    Book[] bookList = new Book[size];
    Iterator it = list.iterator();
    int i = 0;
    while (it.hasNext())
    Book book = (Book) it.next();
    bookList[i] = book;
    i++;
    return bookList;
    Please help guys, it's very urgent

    Yes i have a relationship but i didnt want it to be directly. Maybe this is a design problem but in my case I dont expect any criminals to be involved in lawsuit. My tables are like that:
    CREATE TABLE IF NOT EXISTS Criminal(
         criminal_id INTEGER NOT NULL AUTO_INCREMENT,
         gender varchar(1),
         name varchar(25) NOT NULL,
         last_address varchar(100),
         birth_date date,
         hair_color varchar(10),
         eye_color varchar(10),
         weight INTEGER,
         height INTEGER,
         PRIMARY KEY (criminal_id)
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Lawsuit(
         lawsuit_id INTEGER NOT NULL AUTO_INCREMENT,
         courtName varchar(25),
         PRIMARY KEY (lawsuit_id),
         FOREIGN KEY (courtName) REFERENCES Court_of_Law(courtName) ON DELETE NO ACTION
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Rstands_trial(
         criminal_id INTEGER,
         lawsuit_id INTEGER,
         PRIMARY KEY (criminal_id, lawsuit_id),
         FOREIGN KEY (criminal_id) REFERENCES Criminal(criminal_id) ON DELETE NO ACTION,
         FOREIGN KEY (lawsuit_id) REFERENCES Lawsuit(lawsuit_id) ON DELETE CASCADE
    ENGINE=INNODB;So I couldnt get it.

  • Help with Oracle PL/SQL and Objects...

    Hi,
    I wonder if you can help me, I am having some trouble dealing with Oracle objects in PL/SQL. I can declare them, populate them and read from them without any issues.
    But I am having some problems with trying to copy records in to other records of the same type, and also with updating existing records. I've made a mock up piece of code below to explain what I mean, it may have a few mistakes as I've written it in notepad but should be reasonably clear.
    First I have created a record type, which contains attributes relating to a person.....
    CREATE OR REPLACE
    TYPE PERSON_RECORD_TYPE AS object (
                        Person_ID          NUMBER(3),
                        Person_Name     VARCHAR(20),
                        Person_Age          NUMBER(2),
                        static function new return PERSON_RECORD_TYPE );
    CREATE OR REPLACE
    TYPE BODY PERSON_RECORD_TYPE as
    static function new return PERSON_RECORD_TYPE is
    BEGIN
    return PERSON_RECORD_TYPE (
         NULL,
                             NULL,
                             NULL,
                             NULL,
                             NULL
    END;
    END;
    Then I have created a table type, which is a table of the person record type......
    CREATE OR REPLACE
    type PERSON_TABLE_TYPE as table of PERSON_RECORD_TYPE;
    Finally I have created a procedure which recieves an instance of the person table type and reads through it using a cursor.....
    PROCEDURE ADMIN_PERSON (incoming_person     IN     PERSON_TABLE_TYPE)
    IS
    -- This is a local record declared as the same type as the incoming object
    local_person PERSON_TABLE_TYPE;
    -- Cursor to select all from the incoming object
    CURSOR select_person
    IS
    SELECT      *
    FROM      TABLE ( cast (incoming_person AS PERSON_TABLE_TYPE));
    BEGIN
    -- Loop to process cursor results
    FOR select_person_rec IN select_person
         LOOP
              /* Up to this point works fine...*/
              -- If I want to store the current cursor record in a local record of the same type, I can do this....
              local_person.person_id          := select_person_rec.person_id;
              local_person.person_name      := select_person_rec.person_name;
              local_person.person_age          := select_person_rec.person_age;
    -- QUESTION 1
              -- The above works fine, but in my real example there are a lot more fields          
              -- Why cant I set the local record to the value of the cursor record like this below..     
              local_person := select_person_rec;
    -- The above line gives a pl/sql error - expression is of wrong type, (as far as I can see the records are of the same type?)
    -- QUESTION 2
              --Also how do you update an existing record within the original object, I have tried the following but it does not work
              UPDATE incoming_person
              SET          age = (age + 1)
              WHERE     incoming_person.person_id = '123';
    -- The error here is that the table does not exist
         END LOOP;
    END;
    So I hope that you can see from this, I have two problems. The first is that I can store the current cursor record in a local record if I assign each attribute one at a time, but my real example has a large number of attributes. So why can't I just assign the entire cursor record to the local cursor record?
    I get a PL/SQL error "Expression is of wrong type" when I try to do this.
    The second question is with regards to the update statement, obviously this doesn't work, it expects a table name here instead. So can anyone show me how I should update existing person records in the incoming table type to the procedure?
    I hope this makes sense, but I don't think I have explained it very well!!
    Any help will be gratefully recieved!!
    Thanks

    I understand why you are having trouble - my own brain started to hurt looking at your questions :)
    First off, database types are not records. They can act like records but are "objects" with different characterstics.
    You can create a record in PL/SQL but the "type" is of RECORD. You created an OBJECT as BODY_PERSON_RECORD_TYPE.
    I don't use database types unless I really need them, such as for working with pipelined functions.
    -- QUESTION 1
    -- The above works fine, but in my real example there are a lot more fields
    -- Why cant I set the local record to the value of the cursor record like this below..
    local_person := select_person_rec; local_person is set to the (misnamed) BODY_PERSON_RECORD_TYPE, while SELECT_PERSON_REC is anchored to the cursor and is a RECORD of SELECT_PERSON%ROWTYPE with a field for each column selected in the query. Different types, not compatible.
    You should be able to manually assign the object items one by one as object.attribute := record.field one field at a time.
    -- QUESTION 2
    --Also how do you update an existing record within the original object, I have tried the following but it does not workCheck the on-line documentation for the syntax. You'll probably have to reference the actual value through the table; this is one reason why I don't work with nested tables - the syntax to do things like updates is much more complex.

  • Combining APEX help with a frame-like TOC html help system (I used DITA)

    Problem:
    The APEX page-oriented help system is bad at helping users find how to do something. I prefer to use a task-oriented help system for that, with a table of contents that users can browse around in. I like the DITA (Darwin Information Typing Architecture) system's topic based help with its ideas of tasks, concepts and references. But, I also like the context-based feel of a page-based help system and the way that the APEX help system automatically aggregates all of the item-based help on a page for you.
    My Solution:
    I'm no html genius, so this may be totally wrong, but what I did was to create a task oriented html user guide that also included a page based help TOC entry for each page. I then used iframes in the APEX help page to allow me to have a TOC always showing with links that controlled a content "pane," but still also display the automatically-generated item help for the page help is called from.
    * Downloaded the DITA open toolkit (http://sourceforge.net/projects/dita-ot ), full package distribution and installed using the user guide (http://dita-ot.sourceforge.net/doc/ot-userguide131/xhtml/ )
    * Downloaded and installed XMLmind XML editor free personal edition version ([http://www.xmlmind.com/xmleditor/download.shtml]). I'm not endorsing this thing, but it's free and it works great out of the box for editing DITA files.
    * Created an html user guide by modifying the garage sample that's included with the DITA open toolkit and publishing to xhtml (I also published to pdf2, by the way, to provide a printable user guide for my users to download...one of the nice things about DITA). I set up my files so that they would all be in a topics subfolder, rather than the standard task, concept, and reference folders of the example. I did this so that I wouldn't have to worry about linking to a different folder from APEX (more on that later). I made a concept topic for each page of my application with the filename "Concept_About_page_X.dita," where X is the APEX page number.
    * I run APEX using Oracle Application Server 10g, so I uploaded the files to a subdirectory of their own in the i/ folder on the OAS server. In my case this was APPSERVER_HOME/apache/apache/images/doc/MyAppHelp/
    * The DITA toolkit generates html pages that look for a CSS called commonltr.css, located at the same level as the index.html file. I copied my APEX theme's CSS file to that same place and renamed it commonltr.css (in my case that was APPSERVER_HOME/apache/apache/images/themes/theme_13/theme_V3.css). Now, the proper thing to do would be to configure DITA to point at the real location of the theme's CSS, I guess. But I didn't want to figure out how to do that at this point.
    * Now, in APEX, I deleted all of the page-level help text from my pages, since I had now duplicated this information into the DITA page concept topics. Instead, on each page I put
    * On the help page (the page that you create when you're first setting up Help in APEX, mine is page 50), I added the following iframe tags in the header text of the page: \\      &lt;iframe src="../../i/doc/gradevalhelp/index.html" width="40%" height="50%" align="left"&gt;&lt;/iframe&gt;&lt;iframe name="contentwin" src="../../i/doc/gradevalhelp/topics/Concept_About_page_&REQUEST..html" width="60%" height="50%" align="right"&gt;&lt;/iframe&gt;&lt;br&gt; \\      Note the &lt;br&gt; at the end. I had to put that in to prevent the item level help from printing over my content iframe. Again, someone who knows something about html could probably tell you the right way to do that. The DITA toolkit generates a base tag (&lt;base target="contentwin"/&gt;) in the head section of the index.html file, to make the target of the TOC links be the content frame. Notice how I use it to map the links in the first iframe to the second iframe on the APEX help page, by naming the second frame "contentwin". Notice how the &REQUEST. Substitution string is used to present the proper DITA html file. I also tried setting it up to use a calculated hidden item that looks up the page alias for the requesting page; this had the advantage of allowing me to name my DITA files using page alias instead of page number, but it was too slow.

    Look at all the apdiv's you have.  Those are absolutely positioned layers.  I'm assuming by your post that you are very new to Dreamweaver and HTML and CSS.  I would highly recommend not using absolutely positioned layers until you have a better grasp on HTML and CSS.
    Looking at your code I would suggest that you consider using one of Dreamweaver's built in, or downloadable templates as a starting point and work from there. 
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html

  • Help with Oracle Report Builder and SQL Server2000

    Hey guys,
    I just installed it Oracle Developer Suite10g with Report Builder and I am trying to use Report builder and wants to connect with SQL Server 2000. The problem that I am running in to is SQL Server 2000 i have is Window Authentication so Does not required to enter user name and password. So how can i connect my report builder to SQL server or is it possible to connect Report builder to SQL server?
    Also, I want to create small practice version of database in Oracle how do i do it? what i mean by that is I installed trial version or Oracle developer 10g from www.oracle.com and now trying to get some knowledge with oracle. Could any one can give me some direction in this matter please.
    Thank You
    Key

    Have a look at the reports help for the purpose header and trailer sections. Here is an exert:
    "Report sectioning enables you to define multiple layouts in the same report, each with a different target audience, output format, page layout, page size, or orientation. You can define up to three report sections, each with a body area and a margin area: the names of the sections are Header, Main, and Trailer. By default, a report is defined in the Main section. In the other sections, you can define different layouts, rather than creating multiple separate reports. If you wish, you can use the margin and body of the Header and Trailer sections to create a Header and Trailer page for your reports."

  • Help with Oracle 9i/10g on RedHat 4?

    If anybody can help would be greatly appreciated...
    I get the same error with Oracle 9i & 10g when installing on Red Hat Fedora 4, it's java related...
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-03-16_01-09PM/jre/lib/i386/libawt.so: connat restore segment prot after reloc: Permission Denied
    Red Hat Fedora is weak on java, it only has the Java 1.4 JRE installed. I tried to upgrade to Sun's JRE 6 but got dependency errors.
    Jon

    Red Hat Fedora 4Does not exist.
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-03-16_01-09PM/jre/lib/i386/libawt.so: connat restore segment prot after reloc: Permission DeniedSolution 1: Modify /etc/selinux/config and change value of SELINUX to "disabled" and reboot computer.
    Solution 2: Upgrade selinux-policy-targeted-1.25.2-4.noarch.rpm (Use command: "yum upgrade selinux-policy-targeted")
    Red Hat Fedora is weak on java, it only has the Java 1.4 JRE installed. I tried to upgrade to Sun's JRE 6 but got dependency errors.??? OUI does not have to do with external JRE.
    Oracle Installation comes with bunled JRE.
    If you are using Fedora then you might consider these articles useful:
    http://ivan.kartik.sk/oracle/install_ora9_fedora.html
    http://ivan.kartik.sk/oracle/install_ora10gR2_fedora.html

  • Powaur - an AUR helper with a pacman-like interface

    Hi guys,
    I've just written this minimalistic AUR helper called powaur, with an interface like pacman / yaourt, so
    there's no need to learn an addition set of commands. C is the only language I'm really really comfortable
    with, so powaur is written in C.
    Links
    Github - https://github.com/yanhan/powaur
    AUR - http://aur.archlinux.org/packages.php?ID=49296
    Updates
    24 Jan 2012:  - Updated to work with pacman 4 (!!)
    10 July 2011:  - allow uppercase answers for questions
    28 June 2011: - --noconfirm option added
                           - --list-aur option added; lists installed AUR packages and their version
                           - only resolve dependencies for new / outdated AUR packages
    26 June 2011: - allow installing of packages as root
                           - add per-user directory in form of /tmp/powaur-username, please comment out
                             "TmpDir" section of your powaur.conf for this to take effect
                           - print immediate dependencies for -S
                           - only print dependency graph for -S when --debug is supplied
    10 June 2011: -S supports dependency resolution
                           -Su available to update outdated AUR packages
                           --crawl to output topological order of packages
                           -G --deps uses similar dependency resolution algorithm with -S
    31 May 2011: Colorized output is now available!
    26 May 2011: Multithreaded downloading is now supported!
    Features
    Currently, powaur offers the following feature set:
    -G, --getpkgbuild Downloads PKGBUILDS of listed packages from the AUR
    --deps Resolve dependencies for packages. This is turned off by default.
    --threads <N> Limits the maximum number of threads to N (max of 10)
    -S, --sync When used alone, installs packages from the AUR without dependency resolution.
    --check Only meaningful with -u. Checks for outdated AUR packages without upgrading them
    -i, --info Similar to that of pacman
    -s, --search Searches the AUR for a single package
    -u, --upgrade Updates outdated AUR packages
    --vote Used with -s, orders search results by vote count (highest first) instead of alphabetical order
    -Q, --query Queries installed packages
    -i, --info Similar to that of pacman
    -s, --search Similar to that of pacman
    --crawl <package(s)> Shows a valid topological order of given packages
    -B, --backup [dir] Backup the pacman local database in <dir>, or the current directory if unspecified
    -M, --maintainer Searches the AUR for a maintainer
    --vote Orders the maintainer's packages by vote count (highest first) instead of alphabetical order
    --color Enable colorized output
    --nocolor Turn off colorized output
    --debug Displays debug information
    -h, --help Displays help
    -V, --version Displays version
    Credits
    Many thanks to Dave Reisner (falconindy) for allowing me to use code in cower for json parsing.
    I also referred to source code from pacman and git.
    Finally
    Feature requests are welcome!
    Last edited by yanhan (2012-01-24 11:27:33)

    Hey there, yanhan. I just switched over from Gentoo to Arch simply for my love of Gnome 3. Maybe when Gentoo jumps on their Gnome support, I'll switch back... but for now, I'm loving Arch.
    I downloaded powaur because I like pacman and I wanted to handle the AUR as seamlessly as emerge handles its overlays. I've got a super newb question for you, though, as per I don't quite know pacman's in's and out's yet.
    So, as I'd like the 64-bit flash binary. I go about doing this as root:
    [root@laptop patrick]# powaur -S flashplugin-prerelease
    Syncing:
    flashplugin-prerelease
    ==> Do you wish to proceed? [Y/n]
    ==> y
    Resolving dependencies... Please wait
    ==> Dependency graph:
    xineramaproto (installed) -> randrproto (installed) -> inputproto (installed) -> xextproto (installed) -> renderproto (installed) -> iana-etc (installed) -> xcb-proto (installed) -> kbproto (installed) -> xproto (installed) -> fixesproto (installed) -> compositeproto (installed) -> damageproto (installed) -> tzdata (installed) -> linux-api-headers (installed) -> glibc (installed) -> libice (installed) -> libdatrie (installed) -> libthai (installed) -> pixman (installed) -> libdaemon (installed) -> expat (installed) -> libjpeg-turbo (installed) -> libxdmcp (installed) -> libxau (installed) -> libxcb (installed) -> libx11 (installed) -> libxext (installed) -> libxinerama (installed) -> libxi (installed) -> libxfixes (installed) -> libxcomposite (installed) -> libxdamage (installed) -> libxrender (installed) -> libxcursor (installed) -> libxrandr (installed) -> nspr (installed) -> run-parts (installed) -> gcc-libs (installed) -> pcre (installed) -> glib2 (installed) -> atk (installed) -> attr (installed) -> acl (installed) -> libcap (installed) -> ncurses (installed) -> readline (installed) -> sqlite3 (installed) -> bash (installed) -> gzip (installed) -> libgpg-error (installed) -> libgcrypt (installed) -> keyutils (installed) -> findutils (installed) -> texinfo (installed) -> libtasn1 (installed) -> sed (installed) -> gdbm (installed) -> db (installed) -> libsasl (installed) -> gmp (installed) -> zlib (installed) -> libxml2 (installed) -> shared-mime-info (installed) -> freetype2 (installed) -> fontconfig (installed) -> libxft (installed) -> gnutls (installed) -> libpng (installed) -> cairo (installed) -> pango (installed) -> libtiff (installed) -> gdk-pixbuf2 (installed) -> gtk-update-icon-cache (installed) -> cracklib (installed) -> pam (installed) -> shadow (installed) -> coreutils (installed) -> filesystem (installed) -> util-linux (installed) -> libsm (installed) -> e2fsprogs (installed) -> dbus-core (installed) -> dbus (installed) -> avahi (installed) -> perl (installed) -> openssl (installed) -> libldap (installed) -> krb5 (installed) -> libcups (installed) -> ca-certificates (installed) -> libssh2 (installed) -> curl (installed) -> nss (installed) -> gtk2 (installed) -> libxt (installed) -> mozilla-common (installed) -> flashplugin-prerelease (AUR target)
    ==> Upgrading:
    flashplugin-prerelease
    ==> Edit PKGBUILD for flashplugin-prerelease? [Y/n/a]
    ==> n
    ==> Continue installing flashplugin-prerelease? [Y/n]
    ==> y
    ==> ERROR: Running makepkg as root is a BAD idea and can cause
    permanent, catastrophic damage to your system. If you
    wish to run as root, please use the --asroot option.
    Ok, fair enough.
    So, as _not_ root.
    [patrick@laptop powaur]$ powaur -S flashplugin-prerelease
    Syncing:
    flashplugin-prerelease
    ==> Do you wish to proceed? [Y/n]
    ==> y
    Resolving dependencies... Please wait
    Segmentation fault
    So... what's my silly noob mistake that isn't allowing me to use your wonderful helper?

  • Help with Oracle Table Audit Trigger

    Hi Guys,
    Need some help with the design of a trigger please. I have created one standard audit table where all sensitive data will be audited/inserted. The idea is to insert the column name and the old and new values here, dont want to maintain an audit table for each and every table there is, reporting would be a nightmare.
    Trying to fetch all the column names from sys objects then looping through each and inserting the new and old values for them into the audit table. Everything else is fine apart from the actual :old and :new value inserts. The column name is coming from a variable in a cursor and this is where I seem to be failing.
    Can anyone help please? What is the correct syntax to use?
    CREATE OR REPLACE TRIGGER commission_update
        AFTER UPDATE
            ON commission
            FOR EACH ROW
    DECLARE
            v_username varchar2(10);
              v_column varchar2(20);
              -- Get Table Columns
              cursor table_column is
                      select c.name
                      from  sys.col$ c, sys.obj$ t
                      where t.obj# = c.obj#
                      and   t.type# in (2, 3, 4) 
                      and   bitand(c.property, 32) = 0 /* not hidden column */
                      and t.name = 'COMMISSION';
        BEGIN
            -- Find username of person performing UPDATE into table
            SELECT user
         INTO v_username
            FROM dual;
              open table_column;
                    loop
                          fetch table_column
                         into v_column;                    
                         EXIT WHEN table_column%NOTFOUND;
                                 -- Insert record into audit_record
                             INSERT INTO audit_record
                                  ( aud_code,
                                      aud_ban_code,
                                      aud_user,
                                      aud_table,
                                  aud_column,
                                   aud_old_val,
                                   aud_new_val,
                                   aud_date )
                                VALUES
                                  ( xaudit_record.nextval,
                                      :old.com_ban_code,
                                      v_username,
                                      'COMMISSION',
                                   v_column,
                                   :old.v_column, /* problem here!!!!!!! */
                                   :new.v_column, /* problem here!!!!!!! */
                                   sysdate );
                    end loop;
              close table_column;
        END;
    /

    What does auditing mean in the financial environment? "An audit is a professional, independent examination of a company's financial statements and accounting documents according to generally accepted accounting principles."
    What does it mean in database terms? Surely, the basic definition would be the same, ito of a proper independent examination of changes in the database according to accepted principles?
    And just how does a trigger live up to that? When it is fully dependent on being enabled for that transaction in order to examine it? It is trivial to disable a trigger, make changes, and re-enable it.
    So what happens to your "auditing" then?
    Do you really think that a trigger suffices as a means to audit changes in a table? And if so, what logic and reasoning do you use to discard Oracle's auditing features that are built into the core of the database?

  • Help with Oracle Web content Management post installation

    Hi;
    Trying to Implement the oracle content managemant, especially the Web content mangement part of it.
    Doe anybody know of oracle partner that can help with this. I am really crunched for time.

    FONZ,
    We (ImageSource, Inc.) are an Oracle partner that does Oracle UCM & WCM implementations. Here is a link to our information request form. Add a brief description of what you need help with and someone from ImageSource should contact your shortly.
    http://imagesourceinc.com/Company/RequestInformation/index.htm
    - Tyson

  • Help with Oracle SQL to strip unwanted characters

    Hello,
    I have 2 columns (Weight and Height)  where I need to strip the alpha characters and convert them to numbers (I am required to derive additional columns where I need to present
    these values in inches, cm, KG, LB, etc. (and thus the need to convert them to numbers). I am too much a novice to understand the best way to convert these columns into numbers (same precision as you see here).
    See the image below for a sample of what these columns currently contain. I simply need help with the Oracle SQL code to parse/convert these vales into number. Thanks in advance for your assistance!
    Dave

    Hi,
    In addition to
    Erland Sommarskog's comment which is of course correct and this i not the forum to ask question about Oracle, I dont want to leave you without a lead :-)
    The solution both in SQL Server and Oracle should based on Regular Expressions. I highly recommended NOT to use T-SQL solutions in this case, as mentioned above, unless this is a very small table and the need is very simple and include finding one point
    in the string as in
    SaravanaC solution (when he assume thge string format is based on 2 parts (1) Number + (2) unit type).
    In Oracle there is a build in Regular Expressions option as mentioned here: http://docs.oracle.com/cd/B12037_01/appdev.101/b10795/adfns_re.htm
    In SQL Server the PATINDEX is used for simple cases and there is no built in Regular Expressions, but you can add it using CLR as shown in this link http://msdn.microsoft.com/en-us/magazine/cc163473.aspx
    [Personal Site] [Blog] [Facebook]

  • Request Help With Oracle BI Apps 7.9.x development license

    Request some one from Oracle to PLEASE help with the following query or help me to move the post to right forum.
    I have downloaded BI Apps 7.9 to load it on top of BI EE. These are received from Development Downloads under OTN site (not eDelivery). Both these are planned as development install on one machine with sufficient specs on Windows 32 bit platform.
    BI EE is loaded and starts successfully. Then switched of the services and started to load BI Apps CD1. Done it successfully. Next while starting to install Informatica PowerCenter 7.1.4 it asks product license key. Please help to know where to get this key? Also please help with any connectivity and options key, as well as those for any other products, related to this objective.
    Many thanks,

    Hi RAJC,
    Many thanks for the suggestion. I have moved past that aspect now with this help. Have also verified that everything is working well with BI server, presentation services, scheduler server etc. Admin tool works fine.
    But have difficulty connecting DAC client to the database. The login window does not bring up option to select suitable driver for connecting to Oracle Database 10.2.0.x Also, wonder what table owner name and pw will work here? are they the same as those for schema owner? that is sh.rpd etc? The BI apps version is 7.9 and BIEE is 10.1.3.3
    Thanks

  • Help with Oracle Discoverer

    Hello.
    First of all I'm sorry if there is already another thread on this matter.
    I'm a newbie.
    I just managed to install Oracle EBS 11.5.10.2 on a machine running on a RedHat Linux AS 3.0 (the installation was made without staging). I have two users: one for the database tier and one for the application tier. Everything went well (no errors).
    I logged in to the Oracle Application Manager and I see that the Discoverer Web Component is up and running.
    My question is: how do I check if Discoverer is running on my machine.
    I also had some errors when running the $COMMON_TOP/admin/scripts/ISP_ispdevtst/adstrtal.sh script (./adstrtal.sh apps/apps):
    Executing service control script:
    /u01/oracle/ispcomn/admin/scripts/ISP_ispdevtst/addisctl.sh start
    script returned:
    addisctl.sh version 115.14
    Oracle Discoverer OAD is not running (no process with PID 8928 )
    Waiting for OAD to start...
    Started OAD.
    OAD logs messages to the file /u01/oracle/ispora/8.0.6/discwb4/util/oad.log.
    Oracle Discoverer OSAGENT is not running (no process with PID 8910)
    /u01/oracle/ispora/8.0.6/vbroker/bin/osagent
    Started osagent.
    Osagent logs messages to the file /u01/oracle/ispora/8.0.6/discwb4/util/osagent.log.
    Oracle Discoverer LOCATOR is not running (no process with PID 8941 )
    Failed to start locator.
    Cannot bind to OAD. Re-starting...
    OAD is stopped
    Osagent is stopped
    Unable to stop locator. No process-id file found.
    Unable to stop gatekeeper. No process-id file found.
    session id 13440 is not running
    session id 13469 is not running
    Discoverer Preference id 13457 is not running
    Unable to stop any Discoverer Collector. No process-id file found.
    /u01/oracle/ispora/8.0.6/vbroker/bin/osagent
    Started osagent.
    Osagent logs messages to the file /u01/oracle/ispora/8.0.6/discwb4/util/osagent.log.
    Waiting for OAD to start...
    Started OAD.
    OAD logs messages to the file /u01/oracle/ispora/8.0.6/discwb4/util/oad.log.
    Failed to start locator.
    Registering Discoverer Session
    Registering the Collector
    Applying preferences from file : /u01/oracle/ispora/8.0.6/discwb4/util/pref.txt
    Finished applying preferences
    Registering Discoverer Preference Repository
    addisctl.sh: exiting with status 1
    .end std out.
    /u01/oracle/ispora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    /u01/oracle/ispora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    /u01/oracle/ispora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    /u01/oracle/ispora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    /u01/oracle/ispora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    /u01/oracle/ispora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    Memory fault
    /u01/oracle/ispora/8.0.6/jre1183o/lib/i686/green_threads/libzip.so: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference (libzip.so)
    Unable to initialize threads: cannot find class java/lang/Thread
    Could not create Java VM
    .end err out.
    Check logfile /u01/oracle/ispcomn/admin/log/ISP_ispdevtst/04221540.log for details
    Exiting with status 1
    This is just the last part of the script, the other scripts exited with status 0.
    Is this error of any concern ?
    Thank you.
    Sorin Miroiu

    Hello,
    I cannot address your E-Business Suite (EBS) script errors. However, the OAD and Locator are present in the Discoverer 4.1 release. This release is very old and currently under sustaining support only. The latest release is 10.1.2.3 and this is the recommended Discoverer release.
    There are many Notes regarding using Discoverer with EBS. Here are the Notes regarding EBS 11i and Discoverer.
    Note 139516.1 - Using Discoverer 4i with Oracle Applications 11i
    Note 313418.1 - Using Discoverer 10.1.2 with Oracle E-Business Suite 11i
    Note 1073963.1 - Using Discoverer 11.1.1 with Oracle E-Business Suite Release 11i
    Regards,
    Sharon

  • Help with oracle listner after trying to change the hostaname on Fedora 9

    After searching high and low on the internet for help with this error I am coming here for a little assistance with this issue. A week ago I tried to change the hostname of my machine and the connection to my Db stopped working.
    When I type lsnrctl status I get the following messages
    TNS-12537: Tns Connection closed
    TNS-12560: Tns protocol adapter error
    TNS-00507 Tns connection closed
    Linux Erro: 29 Illegal seek
    Then when I try to run netca I get a java vm error sigsev. Can anyone provide assistance.
    This is on an 11g installation
    Thanks
    Edited by: user5599027 on Jan 27, 2009 2:24 PM

    Here is my /etc/hosts file
    >
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1          localhost.localdomain localhost localhost
    192.168.0.195          localhost
    Ive reverted everything in an attempt to get it back and running to no avail. And the user I am using is the same user that installed the product
    >
    -rwxr-x--- 1 ldhasty ldhasty 187 2007-05-08 00:03 shrept.lst
    drwxr-x--- 2 ldhasty ldhasty 4096 2008-06-08 15:53 samples
    -rwxr-x--- 1 ldhasty ldhasty 200 2008-06-08 16:01 sqlnet.ora
    -rwxr-x--- 1 ldhasty ldhasty 379 2009-01-27 11:07 listener.ora
    -rwxr-x--- 1 ldhasty ldhasty 322 2009-01-27 17:11 tnsnames.ora
    >
    -rwxr-x--- 1 ldhasty ldhasty 136437 2008-06-08 16:01 lsnrctl

Maybe you are looking for

  • How to send Mail in case of Output Determination - Transmission medium 5

    Dear Friends, I have a below requirement. - Create custom output type having Transmission medium 5, which triggers on creation of order. - Write driver program attached to that output type that sends e-mail to the person who has created the order. -

  • Start managed server on the console problem

    I use the weblogic server 6.1 sp1 on the microsoft NT 4.0 and 2000 server sp2, But i have a problem. When i use the default setting to start the administration server and node managed, Then i try to start the managed server on the console, Then <2002

  • My screen looks like a green mesh has been placed over it. It is nearly illegible and comes and goes.

    my screen looks like a green mesh has been placed over it. It is nearly illegible and comes and goes. Nothing I do can remove it.  Does anyone have a remedy?

  • What does wireless mean for a printer?

    I have an HP photosmart printer (sorry but I can't think of the model and I am not home) that has wireless capabilities.  What does this mean?  Does this mean that i can access the printer from my notebook, pda and other wireless devices through the

  • RV180W Wireless Downloads very Slow

    I have a new RV180W just setup for business and everyhing was going perfect. No poblems of installing. All the computers who are connected by lan have no problem. Speed they have is around 17Mb download. All the laptops who are connected by Wifi are