SQL Always on listener not discovered.

I have a problem with discovery of the SQL AlwaysOn. I followed the MS article for implementing SQL monitoring. I can see the
vip with the green circle. However, it's not monitored. Is there special configurations that I'm missing?

Verify the following:
enable proxy on physical sql server on SCOM
Run AS Account in SQL Discovery rule.
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
Mai Ali | My blog: Technical | Twitter:
Mai Ali

Similar Messages

  • SQL Always On - Group Listener with a Private IP ?

    Hi,
    I read the tutorial on how to configure SQL Always On in Azure.
    I saw that we need to configure the group listener with an Public IP. 
    I also saw that SQL servers must reside in a different Cloud Service.
    A reason why is because Azure does not support direct server return.
    What is DSR ?
    To help me understanding, is someone able to explain me this situation :
    What would happen if I configure group listener with a private IP and I put all my servers in the same cloud service.

    Actually, I know what is DSR. 
    During the initial connexion, the client talks with the group listener and then redirect you to the active server. Afterward, you have a direct connection with the Active Server.
    Why is it not supported ? 
    Why having a public IP instead of a private IP resolve the issue ?
    This quote from Microsoft : 
    The client application must reside on a different cloud service than the one that contains your availability group VMs. Azure does not support direct server return with client and server in
    the same cloud service.
    Does it apply only with a public IP address ?

  • SQL Server 2012 Express Instance is Not Discovered

    I have a single SQL Server 2012 Express instance that is the backend database for a small door security application.  I just noticed after having deployed the OpsMgr agent months ago that it never discovered the SQL instance.  The SQL instance
    is, as stated, Express, and it's the only Express instance I have.  Is that why it is not discovered?  All the documentation I found seems to indicate the opposite -- that Express is discovered and there are steps you can take to exclude Express
    instances.  I have no overrides set to exclude any instance or any database.
    - System Center Operations Manager 2012 RTM (no SP1, no R2)
    - SQL Server 2012 MP version 6.3.173.1
    - SQL Server is Windows Server 2012
    - SQL Server 2012 Express running on a Hyper-V VM.  Instance is named DOORSERVER\Eclipse
    - Agent is installed and other discoveries seem to be working fine
    - No discovery errors in the event log related to SQL, although there is one about the Windows Server 2008 discovery not being able to start, but I'm on Windows Server 2012, so I am guessing that's okay?
    - No overrides are set on the discovery
    - Discovery has found every other SQL Server 2012 instance (standard and enterprise editions)

    Well, just realized I didn't have the latest MP.  Upgrading to 6.4.1.0 version of the SQL MP fixed the discovery issue.

  • SQL 2005 Databases not Discovered

    We have a SQL 2005 server, where the DB instance itself has been discovered but the SQL DBs themselves have not. Any way to understand / troubleshoot why not. Other instances work just fine.

    The account is just fine, and it is a sysadmin on the server. It discovered the instance even, unlike by my other post:
    http://social.technet.microsoft.com/Forums/systemcenter/en-US/7da4b442-c9e4-4aac-9cb9-d2af0b1ffbaa/clustered-database-engine-not-discovered?forum=operationsmanagermgmtpacks&prof=required
    That said, it doesn't discover DBs. I haven't seen any errors in the event log pertaining to the discovery. The bug fix posted above also hasn't helped me.
    When trying to run this MP script manually it also returns XML:
    http://blogs.technet.com/b/jimmyharper/archive/2009/06/11/sql-database-properties-not-discovered.aspx
    So, I'm not really sure that is going on here. What is the expected return I am supposed to get.

  • OEM V2.2/will not discover database

    Hello,
    I am using oracle 8i database in windows nt environment. When in OEM, the discovery services will see the node that database is loaded and running on, but will not discover the database. I can manually configure the database, but the config is using the wrong instance (orcl) instead of webar. I have checked tnsnames.ora, sql.net, listener.ora and can find nothing wrong. I can connect to the database no problem. OEM is the only software that has a problem. Is there a configuration file for the Intelligent Agent? Am I missing something else?
    Thanks for the help.
    Sue Misslbeck

    I am not getting any error at all. It will discover the node (ora1) where the database resides, however, it will not show a database folder for this node.
    Should I be getting an error message?
    Thanks.
    Sue

  • Listener not working in one of the servers of the Standby site

    Hello,
    The system is a RAC with two servers working as Primary site, and two servers working as Standby site.
    Both servers of the Primary site are sending redo logs to one of the servers of the Standby site. The other server of the Standby site is not receiving any redo log.
    I have checked the listener.ora and the tnsnames.ora files of the server that is not receiving and it is well configured comparing it with the server that is receiving the redo logs.
    If I check the status of the listener: lsnrctl status listener_<node name>
    Both of the Standby servers look fine.
    But if I connect directly to the database...
    In the 1st server of the Standby, the IP appears:
    SQL> show parameter listener
    NAME TYPE VALUE
    local_listener string (ADDRESS = (PROTOCOL = TCP)(HOST = xxx.xxx.xxx.xxx)(PORT = xxxx))
    remote_listener string LISTENERS_DB
    Nevertheless, in the second server of the Standby site, the one that is not receiving the redo logs, the IP does not appear:
    SQL> show parameter listener
    NAME TYPE VALUE
    local_listener string (ADDRESS = (PROTOCOL = TCP)(HOST = )(PORT = xxxx))
    remote_listener string LISTENERS_DB
    I have found the following to reload the listener:
    Oracle# lsnrctl reload listener_`hostname`
    Oracle# lsnrctl reload listener_standby
    Has anyone tried this? Did it work? It can be run without affecting the sytem, Dataguard, replication..., right?
    If you have another idea to fix this, let me know please.
    Thank you ;)
    Edited by: user11281526 on 29-oct-2009 4:35
    Edited by: user11281526 on 30-oct-2009 7:36
    Edited by: user11281526 on 31-oct-2009 4:11

    If I see the status of the listener_standby in the second server of the Standby site, the one that it is not receiving redo logs, it looks like it is fine. Why?
    #lsnrctl status listener_standby
    LSNRCTL for Solaris: Version 10.1.0.4.0 - Production on dd-mm-yyyy hh:mm:ss
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=IP_second_server_standby)(PORT=xxxx)))
    STATUS of the LISTENER
    Alias listener_standby
    Version TNSLSNR for Solaris: Version 10.1.0.4.0 - Production
    Start Date dd-mm-yyyy hh:mm:ss
    Uptime xx days yy hr. zz min.
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /opt/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Listener Log File /opt/oracle/product/10.1.0/db_1/network/log/listener_standby.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=IP_second_server_standby)(PORT=xxxx)))
    Services Summary...
    Service "DB1" has 1 instance(s).
    Instance "DB1", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    Edited by: user11281526 on 29-oct-2009 6:41
    Edited by: user11281526 on 29-oct-2009 6:42
    Edited by: user11281526 on 29-oct-2009 6:43

  • JBO-27122: SQL error & java.sql.SQLException: ORA-01843: not a valid month

    Hi,
    We developed OA page for Employee's Payslip and it is working fine for all the employees but it is not working for only one employee...Getting the error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement
    preparation
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Real Scenario is:
    The user "DANISH.LOTFY" is login into application and when he click on Payslip to the month then he is always getting the above error.
    For testing purpose we have removed his employee assignment from user screen(fnd_user) and assigned some other employee name (say MOHAMED.ELBAHY)... After this when DANISH.LOTFY logins into the application and payslip page is working fine...(He can able to see MOHAMED.ELBAHY payslip.....
    Realy we don't know this strange behaviour of OA ...
    ------ Code with Error details------------------
    Statement:
    SELECT * FROM (SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID =Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    ---Added by Sudipta C on 28th Janaury 2008
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) <> TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    UNION ALL
    --Query to Display only the Current Month if the Concurrent Request Ran
    SELECT DISTINCT ppa.DATE_EARNED, TO_CHAR(ppa.DATE_EARNED,'MON-YYYY') DISPLAY
    , TO_CHAR(ppa.DATE_EARNED,'MM YYYY') PARAM
    FROM
    pay_payroll_actions ppa
    ,pay_assignment_actions pac
    ,PER_ALL_ASSIGNMENTS_F PASS
    ,FND_USER FU
    ,per_time_periods PTP
    WHERE ppa.payroll_id = 61
    AND ppa.payroll_action_id = pac.payroll_action_id
    AND PAC.ASSIGNMENT_ID = PASS.ASSIGNMENT_ID
    AND PASS.PERSON_ID = FU.EMPLOYEE_ID
    AND FU.USER_ID = Fnd_Profile.VALUE('USER_ID')
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) IS NOT NULL
    AND TRIM(TO_CHAR(ppa.DATE_EARNED,'MON-YYYY')) = TRIM(TO_CHAR(SYSDATE,'MON-YYYY'))
    AND ppa.DATE_EARNED=(SELECT MAX(DATE_EARNED) FROM pay_payroll_actions WHERE time_period_id=ppa.time_period_id)
    AND ppa.DATE_EARNED >='30-NOV-2007'
    --Check the Concurrent Program Ran or not to Display the SYS Month Payroll Period ID
    AND EXISTS
    (SELECT TRIM(TO_CHAR(REQUEST_DATE,'MON-YYYY')) FROM fnd_conc_req_summary_v fcrs
    WHERE program_short_name = 'PROC_EXP1_TESTING'
    AND PHASE_CODE='C' AND STATUS_CODE='C'
    AND TO_CHAR(REQUEST_DATE,'MON-YYYY')=TO_CHAR(SYSDATE,'MON-YYYY')
    AND REQUEST_DATE=(SELECT MAX(REQUEST_DATE) FROM fnd_conc_req_summary_v
    WHERE CONCURRENT_PROGRAM_ID=fcrs.CONCURRENT_PROGRAM_ID))
    ORDER BY 1 DESC) QRSLT WHERE (( UPPER(DISPLAY) like :1 AND (DISPLAY like :2 OR DISPLAY like :3 OR DISPLAY like :4 OR DISPLAY like :5)))
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2555)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:84)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    java.sql.SQLException: ORA-01843: not a valid month
    Could any please suggest/provide your valuable inputs to resolve this issue(It is in production , so please treat it as very urgent).
    Thanks & Regards,
    J.Prakash

    Hi,
    This is really a strange behaviour as you are saying that it is happening only for one user so please check his user preferences.
    Regards,
    Reetesh Sharma

  • Listener not showing the instance for informix.

    Hi All,
    I am using oracle gateway 11g and here I just discovered that the one of the database listener not showing the instance for the informix gatways, though it has already configured. whereas on other database , the listner is showing the instances for informix database. it was running fine few days back though.
    would appriciate , if you coule let me know that why it suddenly stop responding ?
    ----------------- OK Listener ----------------------------
    ptmsap> lsnrctl status LISTENER_PTMSAP
    LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 29-JUL-2012 05:07:07
    Copyright (c) 1991, 2011, Oracle.  All rights reserved.
    Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=10.222.68.34)(Port=1621))
    STATUS of the LISTENER
    Alias                     LISTENER_PTMSAP
    Version                   TNSLSNR for Linux: Version 11.2.0.3.0 - Production
    Start Date                19-JUL-2012 10:25:25
    Uptime                    9 days 18 hr. 41 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /db/ptmsap11/oracle/product/11.2.0/network/admin/listener.ora
    Listener Log File         /db/ptmsap11/oracle/diag/tnslsnr/tbx4new/listener_ptmsap/alert/log.xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.222.68.34)(PORT=1621)))
    Services Summary...
    Service "MSCARD4" has 1 instance(s).
      Instance "MSCARD4", status UNKNOWN, has 1 handler(s) for this service...
    Service "as400" has 1 instance(s).
      Instance "as400", status UNKNOWN, has 1 handler(s) for this service...
    Service "db2test" has 1 instance(s).
      Instance "db2test", status UNKNOWN, has 1 handler(s) for this service...
    Service "ptmsap" has 1 instance(s).
      Instance "ptmsap", status UNKNOWN, has 1 handler(s) for this service...
    Service "tg4ifmx" has 1 instance(s).
      Instance "tg4ifmx", status UNKNOWN, has 1 handler(s) for this service...
    Service "tg4trai" has 1 instance(s).
      Instance "tg4trai", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    LISTENER_PTMSAP =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = TCP)
              (Host = host_ip)
              (Port = 1621)
    SID_LIST_LISTENER_PTMSAP =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = ptmsap)
          (ORACLE_HOME = /db/ptmsap11/oracle/product/11.2.0)
          (PRESPAWN_MAX = 10)
       (SID_DESC=
         (SID_NAME=tg4ifmx)
         (ORACLE_HOME=/db/ptmsap11/oracle/product/11.2.0)
         (PROGRAM=dg4ifmx)
       (SID_DESC=
          (SID_NAME=tg4trai)
          (ORACLE_HOME=/db/ptmsap11/oracle/product/11.2.0)
          (PROGRAM=dg4ifmx)
       (SID_DESC=
         (SID_NAME=db2test)
         (ORACLE_HOME=/db/ptmsap11/oracle/product/11.2.0)
         (PROGRAM=dg4db2)
       (SID_DESC=
         (SID_NAME=as400)
         (ORACLE_HOME=/db/ptmsap11/oracle/product/11.2.0)
         (ENV="LD_LIBRARY_PATH=/db/ptmsap11/oracle/product/11.2.0/dg4db2/driver/lib:/db/ptmsap11/oracle/product/11.2.0/lib")
         (PROGRAM=dg4db2)
      (SID_DESC=
        (SID_NAME=MSCARD4)
        (ORACLE_HOME=/db/ptmsap11/oracle/product/11.2.0)
        (PROGRAM=dg4odbc)
        (ENVS=LD_LIBRARY_PATH=/opt/minisoft:/db/ptmsap11/oracle/product/11.2.0)
    +++++++ Not OK Listener++++++++++++++++++
    LISTENER_SMI =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = TCP)
              (Host = host_ip)
              (Port = 1821)
    SID_LIST_LISTENER_SMI =
      (SID_LIST =
         (SID_DESC=
         (SID_NAME=SMICAN)
         (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
         (ENV="LD_LIBRARY_PATH=/pdsdev/ptmqa/oracle/product/11.2.0/db/dg4db2/driver/lib:/pdsdev/ptmqa/oracle/product/11.2.0/db/lib")
         (PROGRAM=dg4db2)
            (SID_DESC=
            (SID_NAME=SMIINTL)
            (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
            (ENV="LD_LIBRARY_PATH=/pdsdev/ptmqa/oracle/product/11.2.0/db/dg4db2/driver/lib:/pdsdev/ptmqa/oracle/product/11.2.0/db/lib")
            (PROGRAM=dg4db2)
            (SID_DESC=
            (SID_NAME=SMIMEL)
            (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
            (ENV="LD_LIBRARY_PATH=/pdsdev/ptmqa/oracle/product/11.2.0/db/dg4db2/driver/lib:/pdsdev/ptmqa/oracle/product/11.2.0/db/lib")
            (PROGRAM=dg4db2)
            (SID_DESC=
            (SID_NAME=SMIMRKTS)
            (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
            (ENV="LD_LIBRARY_PATH=/pdsdev/ptmqa/oracle/product/11.2.0/db/dg4db2/driver/lib:/pdsdev/ptmqa/oracle/product/11.2.0/db/lib")
            (PROGRAM=dg4db2)
    LISTENER_PTMQA11 =
      (ADDRESS_LIST =
            (ADDRESS =
              (PROTOCOL = TCP)
              (Host = host_ip)
              (Port = 1521)
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = ptmqa11)
          (ORACLE_HOME = /pdsdev/ptmqa/oracle/product/11.2.0/db)
          (PRESPAWN_MAX = 10)
       (SID_DESC=
         (SID_NAME=tg4ifmx)
         (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
         (PROGRAM=dg4ifmx)
       (SID_DESC=
          (SID_NAME=tg4trai)
          (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
          (PROGRAM=dg4ifmx)
       (SID_DESC=
         (SID_NAME=db2test)
         (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
         (PROGRAM=dg4db2)
       (SID_DESC=
         (SID_NAME=as400)
         (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
         (ENV="LD_LIBRARY_PATH=/pdsdev/ptmqa/oracle/product/11.2.0/db/dg4db2/driver/lib:/pdsdev/ptmqa/oracle/product/11.2.0/db/lib)
         (PROGRAM=dg4db2)
      (SID_DESC=
        (SID_NAME=MSCARD4)
        (ORACLE_HOME=/pdsdev/ptmqa/oracle/product/11.2.0/db)
        (PROGRAM=dg4odbc)
        (ENVS=LD_LIBRARY_PATH=/opt/minisoft:/pdsdev/ptmqa/oracle/product/11.2.0/db)
    )Regards
    Edited by: 937853 on Jul 29, 2012 2:10 AM

    thanks all, I was able to solve the issue. it was indeed a port no , which caused this issue.

  • Database trigger - PL/SQL: ORA-00984: column not allowed here

    I am trying to create a trigger that will update an employee audit table when a row is changed. Using a sequence number to assign a unique identifier to each row as it is created. Need to capture the user ID, date of the change, and the action (update), plus the before image of the row.
    CREATE SEQUENCE emp_audit_seq START WITH 10;               
    Create table emp (
       empno       NUMBER(4)      Primary Key,
       ename       VARCHAR2(10),
       job            VARCHAR2(9),
       mgr           NUMBER(4),
       hiredate     DATE,
       sal             NUMBER(7,2),
       comm        NUMBER(7,2),
       deptno       NUMBER(2));
    CREATE TABLE emp_audit   (
         audit_uid          NUMBER(15)      Primary Key,
         change_date          DATE,
         change_user          VARCHAR2(30),
         action                  CHAR(1),
         empno                  NUMBER(4),
         ename                  VARCHAR2(10),          
         job               VARCHAR2(9),
         mgr               NUMBER(4),
         hiredate          DATE,
         sal               NUMBER(7,2),
         comm                  NUMBER(7,2),
         deptno                  NUMBER(2));
    CREATE OR REPLACE TRIGGER trig_emp_audit
      BEFORE UPDATE ON emp
      FOR EACH ROW
    BEGIN
      INSERT INTO emp_audit
        VALUES(emp_audit_seq.nextval, change_date, change_user, action, :old.empno, :old.ename, :old.job, :old.mgr, :old.hiredate, :old.sal, :old.comm, deptno);
    END;
    Warning: Trigger created with compilation errors.
    SQL> show errors
    Errors for TRIGGER TRIG_EMP_AUDIT:
    LINE/COL ERROR
    2/3      PL/SQL: SQL Statement ignored
    3/149    PL/SQL: ORA-00984: column not allowed hereCan anyone assist in helping me find what I am doing wrong with the trigger?
    Edited by: LostNoob on Aug 25, 2012 2:24 PM

    First, when you write an INSERT statement, it's always good to list the columns that you're inserting into. That makes the code easier to follow-- you don't have to separately pull up the table definition to know what order columns are inserted. And it makes the code more maintainable since the statement won't become invalid if you add a new column to the table in the future.
    Second, CHANGE_DATE, CHANGE_USER, and ACTION are not (presumably) functions and they are not local variables so it doesn't make sense to use them in an INSERT statement. You would need to write code or leverage existing functions to populate those columns. I'm guessing, for example, that you want to use SYSDATE to populate the CHANGE_DATE and USER to populate the CHANGE_USER column. My guess is that ACTION should always be a 'U' for UPDATE.
    Third, it appears that you left off the :old on the DEPTNO column.
    Putting it all together, you'd have something like
    CREATE OR REPLACE TRIGGER trig_emp_audit
      BEFORE UPDATE ON emp
      FOR EACH ROW
    BEGIN
      INSERT INTO emp_audit(
          audit_uid,
          change_date,
          change_user,
          action,
          enpno,
          ename,
          job,
          mgr,
          hiredate,
          sal,
          comm,
          deptno )
        VALUES(
          emp_audit_seq.nextval,
          sysdate,
          user,
          'U',
         :old.empno,
         :old.ename,
         :old.job,
         :old.mgr,
         :old.hiredate,
         :old.sal,
         :old.comm,
         :old.deptno);
    END;
    / Justin

  • SharePoint 2013 and SQL Always On

    How do I setup SharePoint with SQL Always On.
    I have two servers SQL1 and SQL2.  I created Windows 2012 cluster and called it MyCluster.
    I installed SQL Server 2012 SP1 on both servers. I created AlwaysOn group called MyAlwaysOn and added test database to sync between those two servers.
    Now I have to install SharePoint 2013.  How do I specify the SQL server? Do I say that name is SQL1? Or MyCluster? Or MyAlwaysOn?
    MyAlwaysOn does not have IP address or DNS record, so I do not think I can do it. So, is it SQL1 or MyCluster?
    If it is SQL1, do I manualy add SharePoint databases to MyAlwaysOn group? How does it work? How will SharePoint know to switch to SQL2?
    Anyone knows how to do it right?
    Thank you.
    Thank you. Eric.

    Please see))
    http://blogs.msdn.com/b/sambetts/archive/2013/04/24/sharepoint-2013-and-sql-server-alwayson-high-availability-sharepoint.aspx
    Create SharePoint Databases
    Prepare SQL Alias
    We need to fool SharePoint into thinking the SQL server where we'll create the configuration database is called something else. That’s because when you create a farm, whatever destination server you use during the “create new farm” stage isn’t forgotten (to
    simplify), so first thing’s first let’s create fake alias for our SQL “server” – “SP15” as it’s SharePoint 2013 that’ll use it (version 15). As far as SharePoint needs to know everything is going into a SQL box called 'SP15'.
    Now assuming you don’t have SQL Server tools installed (which you shouldn’t if it’s on production!) you’ll need to use a tool called “cliconfg.exe” to create a SQL alias. Run it; click the “Alias” tab, and the Add button.
    Add a name – SP15 for the alias name, but it can be anything - instead of referencing a server-name we’ll reference the name of the alias which will transparently redirect traffic to the alias destination instead.
    And if you know Russian languages
    http://blog.it-kb.ru/2014/04/15/install-two-tier-farm-sharepoint-server-2013-sp1-on-windows-server-2012-r2-part-1-prepare-ha-clustered-sql-server-2012-sp1-cumulative-update-9-instance/
    http://blog.it-kb.ru/2014/04/15/install-two-tier-farm-sharepoint-server-2013-sp1-on-windows-server-2012-r2-part-2-create-a-new-server-farm-with-kerberos-and-language-pack/
    Так как БД SharePoint в нашем случае будут расположены на удалённом экземпляре SQL Server 2012 SP1(CU9), перед началом установки SharePoint
    можно установить пакет Microsoft SQL Server Native Client. Его можно загрузить например со страницы Microsoft
    SQL Server 2012 SP1 Feature Pack (файлENU\x64\sqlncli.msi), а ещё лучше взять дистрибутив клиента обновлённой версии из состава CU9 (файл\SQLServer2012_SP1_CU9\1033_enu_lp\x64\setup\x64\sqlncli.msi)
    Хотя в дальнейшем фактически утилита подготовки к установке Sharepoint всё равно загрузит у установитSQL Server 2008 R2 SP1 Native Client.
    После установки SQL-клиента создадим на нашем сервере SQL-Alias, который будем в дальнейшем использовать для подключения служб SharePoint к серверу SQL Server. Этого конечно можно
    и не делать, но это может оказаться полезным (даст нам дополнительную гибкость) в случае необходимости переноса БД на другой SQL-сервер или экземпляр. Запустим встроенную в ОС утилиту SQL Server Client Network Utility (%windir%\system32\cliconfg.exe)
    и добавим два новых алиаса – с коротким именем SQL-сервера и его FQDN, указав при этом имя экземпляра и статический TCP порт (в нашем случае SHAREPOINT и 1435соответственно).
    Имя самого алиаса в нашем случае будет KOM-AD01-SQLSP

  • The java and sql object type  was not matched

    My table(Oracle10.2) has a varying arrays column. For mapping to java classes, I use JDeveloper(10.1.3.1.0) to generate java classes. Then I try to insert a record into this varrying arrays column with java. While it always complaints java.sql.SQLException.the java and sql object type was not matched. I can not find the reason.
    My java code:
                   StructDescriptor structdesc = StructDescriptor.createDescriptor(
                             "VARRAY_SEQ", con);
                   int nid=20;
                   int pid=546;
                   BigDecimal mynid=new BigDecimal(nid);
                   mynid=mynid.setScale(0, BigDecimal.ROUND_HALF_UP);
                   BigDecimal mypid=new BigDecimal(pid);
                   mypid=mypid.setScale(0, BigDecimal.ROUND_HALF_UP);
                   Object[] attributes = { "ASDF", mynid, "Developer", mypid,
                             "rwretw" };
                   STRUCT Rel = new STRUCT(structdesc, con, attributes);
                   stmt.setObject(8, Rel);
                   stmt.execute();
                   stmt.close();
    And the STRUCT is
    public RelSeq(String nucl, java.math.BigDecimal neId, String nuor, java.math.BigDecimal pId, String phor) throws SQLException
    { _init_struct(true);
    setNucl(nucl);
    setNeId(neId);
    setNuor(nuor);
    setPId(pId);
    setPhor(phor);
    }

    My table(Oracle10.2) has a varying arrays column. For mapping to java classes, I use JDeveloper(10.1.3.1.0) to generate java classes. Then I try to insert a record into this varrying arrays column with java. While it always complaints java.sql.SQLException.the java and sql object type was not matched. I can not find the reason.
    My java code:
                   StructDescriptor structdesc = StructDescriptor.createDescriptor(
                             "VARRAY_SEQ", con);
                   int nid=20;
                   int pid=546;
                   BigDecimal mynid=new BigDecimal(nid);
                   mynid=mynid.setScale(0, BigDecimal.ROUND_HALF_UP);
                   BigDecimal mypid=new BigDecimal(pid);
                   mypid=mypid.setScale(0, BigDecimal.ROUND_HALF_UP);
                   Object[] attributes = { "ASDF", mynid, "Developer", mypid,
                             "rwretw" };
                   STRUCT Rel = new STRUCT(structdesc, con, attributes);
                   stmt.setObject(8, Rel);
                   stmt.execute();
                   stmt.close();
    And the STRUCT is
    public RelSeq(String nucl, java.math.BigDecimal neId, String nuor, java.math.BigDecimal pId, String phor) throws SQLException
    { _init_struct(true);
    setNucl(nucl);
    setNeId(neId);
    setNuor(nuor);
    setPId(pId);
    setPhor(phor);
    }

  • Entry-SQL syntax error: CASE not allowed

    Hello All. When I use sap netweaver developer to develop webdynpro applications, I always meet that jdbc error.
    when using inner join,left join, or using case when in the sql, it will pop up Entry-SQL syntax error.
    But I have run the sql in Microsoft SQL Server studio successfully.
    The SQL statement "UPDATE SAPNWDDB.Z_SERIAL SET LASTSERIAL = CASE WHEN ENDWITH IS NOT NULL THEN CASE WHEN LASTSERIAL + 1 > ENDWITH THEN ISNULL(STARTWITH, 0) ELSE LASTSERIAL + 1 END ELSE LASTSERIAL + 1 END WHERE SERIALNO = ?" contains the syntax error[s]: - 1:43 - Entry-SQL syntax error: CASE not allowed
    - 1:78 - Entry-SQL syntax error: CASE not allowed
    - 1:124 - SQL syntax error: the token "(" was not expected here
    Can someone help me? Thank you.

    Hi Arun Jaiswal ,
    Thank you for your answer. But I have tried query in sql editor. Actually it can work. Other than "CASE" syntax, it seems not support inner join and left join in webdynpro either. I even can not query the db views.
    That's imposible jdbc not support these simple syntex. I wonder there is any config control the sql compatibility level.
    I have developped a java programm to test it. It is ok. No error. But the same case pop up error in java webdynpro application.I don't know why.
    I am entry level webdynpro developper.
    Hopefully you can help me.
    Thank you.
    Edited by: zegunlee330 on Sep 3, 2010 4:18 AM

  • Database is not discovered.

    I've added 2 new database targets in Grid Control. One of the targets is used as primary database and the other one is physical standby. Data guard configuration is set manually and is working well. However when i click "Verify Configuration" in Grid Control i get the error "Database is not discovered". Also, performance overview is reporting this error "Unable to obtain Agent location for target <my target name>. You may not currently be logged in."
    Any idea why is this happening?

    I solved my problem. The data guard from OEM now dicovers both databases. I'm not sure what caused the problem, but i think it was the naming of databases inside dataguard broker and OEM. Because my dataguard configuration was done through SQL and command line broker.
    What i did now was, removed standby database from broker configuration in OEM, and added it again. Performed switchover and did the same thing again with other database. This way broker database configuration got new property that can be seen with "show database" command inside broker command line. Property name is "OEM Name:", and it wasn't there before i added standby database through OEM.
    I hope this helps.

  • IPhone 4S bluetooth not discovering bluetooth devices

    My iPhone 4S bluetooth is not discovering bluetooth devices, specifically my new Platronics Voyager Pro HD headset which worked just fine with the iPhone 4 even after the recent software upgrade.  I noticed that others are having bluetooth discovery issues as well.  Will Apple be addressing this problem with a software fix or is this a hardware problem?
    CrystalVan

    Nevermind!  It always helps to re-read the Platronics - how to pair your device instructions.  DUH!!!!

  • Unable to conclude on the Port on which SQL Server is Listening

    Hello,
    I have two instances of SQL Server installed on a Server.
    The First Instance is in stopped state and Second Instance Port Status can be seen in the attached screenshot.
    Dynamic Ports:55005
    TCP Port:1433
    I was not able come to conclusion on the port that SQL server is listening on because when I try netstat I see both the Ports listening.
    sadankumar

    Just simple query in SSMS
    SELECT  CONNECTIONPROPERTY('local_tcp_port') AS local_tcp_port
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • How do I share files with my pc, how do I share files with my pc

    How do I share my files from my pc to my imac and viceversa? I have been through everything I know to do. My pc is a win 7 home premium and i can share my itunes libraries just fine, but when i try to conect to pc from mac it says There was a proplem

  • Recovering Data from Original Hard Drive

    My daughter has a 4 year old G4 iBook. It ran flawlessly for nearly 4 years, then its original 30 gig hard drive gave up the ghost and she had a new 160 gig drive installed in its place. Unfortunately, the folks who installed the new drive (an author

  • Cannot use WLAN on my Satellite 5105-s501

    Hi, I've just acquired this computer. I'm not sure if the 5105 s501 is the L series - I can't find any information anywhere, perhaps someone could push me in the right direction. I can't get the wireless to work. I can connect to the internet via a c

  • With my correct info, I can't purchase additional mb's onto my ipad. Any advice?

    With my correct info, I can not purchase additional megabytes onto my ipad. Any suggestions?

  • Desktop not working

    When I started my Macbook this morning, I noticed that my background was not showing up, and a plain blue screen was there instead. I checked under system preferences to make that I have a background selected, and as usual there was a small version o