Equivalent of %s/string1/tring2/g

Hello,
I would like to replace some string with SQL, but I do not know how to.
I have this in one field:
<status xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
<creation_date>2008-01-07 12:15:11</creation_date>
<creator>creator:STAFF</creator>
<modification_date>2008-06-11 09:20:15</modification_date>
<modified_by>super:ADMIN</modified_by>
<admin_unit>01</admin_unit>
</control>
<mds>
<md shared="false">
<mid>439220</mid>
<description />
<name>accessrights</name>
<type>rights_md</type>
<value>
<![CDATA[ <?xml version="1.0" encoding="UTF-8"?><ar:access_right_md xmlns:ar="http://com/exlibris/digitool/repository/api/xmlbeans" enabled="true"><ar_copyrights required="false"><text_file></text_file></ar_copyrights><ar_conditions><ar_condition negate="false"><ar_expressions><ar_expression negate="true" ar_operation="within"><key>ip_range</key><val1>217.13.122.1</val1><val2>217.13.122.255</val2></ar_expression></ar_expressions></ar_condition><ar_condition negate="false"><ar_expressions><ar_expression negate="false" ar_operation="within"><key>ip_range</key><val1>138.4.1.1</val1><val2>138.4.255.255</val2></ar_expression></ar_expressions></ar_condition><ar_condition negate="false"><ar_expressions><ar_expression negate="false" ar_operation="within"><key>ip_range</key><val1>138.100.1.1</val1><val2>138.100.255.255</val2></ar_expression></ar_expressions></ar_condition></ar_conditions></ar:access_right_md>
  ]]>
</value>
</md>
<md shared="false">
<mid>383820</mid>
<description xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
<name>descriptive</name>
and I would like to replcae ALL the IP by an other one,
Some one knows how?
THanks a lot

Oracle version? If 10g:
SQL> select regexp_replace('<status xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
  2  <creation_date>2008-01-07 12:15:11</creation_date>
  3  <creator>creator:STAFF</creator>
  4  <modification_date>2008-06-11 09:20:15</modification_date>
  5  <modified_by>super:ADMIN</modified_by>
  6  <admin_unit>01</admin_unit>
  7  </control>
  8  <mds>
  9  <md shared="false">
10  <mid>439220</mid>
11  <description />
12  <name>accessrights</name>
13  <type>rights_md</type>
14  <value>
15  <![CDATA[ ><?xml version="1.0" encoding="UTF-8"?><ar:access_right_md xmlns:ar="http://com/exlibris/digitool/repository/api/xmlbe
ans" enabled="true"><ar_copyrights required="false"><text_file></text_file></ar_copyrights><ar_conditions><ar_condition negate="false
"><ar_expressions><ar_expression negate="true" ar_operation="within"><key>ip_range</key><val1>217.13.122.1</val1><val2>217.13.122.255
</val2></ar_expression></ar_expressions></ar_condition><ar_condition negate="false"><ar_expressions><ar_expression negate="false" ar_
operation="within"><key>ip_range</key><val1>138.4.1.1</val1><val2>138.4.255.255</val2></ar_expression></ar_expressions></ar_condition
<ar_condition negate="false"><ar_expressions><ar_expression negate="false" ar_operation="within"><key>ip_range</key><val1>138.100.1.1</val1><val2>138.100.255.255</val2></ar_expression></ar_expressions></ar_condition></ar_conditions></ar:access_right_md>
16  ]]>
17  </value>
18  </md>
19  <md shared="false">
20  <mid>383820</mid>
21  <description xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
22  <name>descriptive</name>','\d+\.\d+\.\d+\.\d+','1.1.1.1') x from dual
23  /
X
<status xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
<creation_date>2008-01-07 12:15:11</creation_date>
<creator>creator:STAFF</creator>
<modification_date>2008-06-11 09:20:15</modification_date>
<modified_by>super:ADMIN</modified_by>
<admin_unit>01</admin_unit>
</control>
<mds>
<md shared="false">
<mid>439220</mid>
<description />
X
<name>accessrights</name>
<type>rights_md</type>
<value>
<![CDATA[ ><?xml version="1.0" encoding="UTF-8"?><ar:access_right_md xmlns:ar="http://com/exlibris/digitool/repository/api/xmlbeans"
enabled="true"><ar_copyrights required="false"><text_file></text_file></ar_copyrights><ar_conditions><ar_condition negate="false"><
ar_expressions><ar_expression negate="true" ar_operation="within"><key>ip_range</key><val1>1.1.1.1</val1><val2>1.1.1.1</val2></ar_ex
pression></ar_expressions></ar_condition><ar_condition negate="false"><ar_expressions><ar_expression negate="false" ar_operation="wi
thin"><key>ip_range</key><val1>1.1.1.1</val1><val2>1.1.1.1</val2></ar_expression></ar_expressions></ar_condition><ar_condition negat
e="false"><ar_expressions><ar_expression negate="false" ar_operation="within"><key>ip_range</key><val1>1.1.1.1</val1><val2>1.1.1.1</
val2></ar_expression></ar_expressions></ar_condition></ar_conditions></ar:access_right_md>
]]>
X
</value>
</md>
<md shared="false">
<mid>383820</mid>
<description xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
<name>descriptive</name>
SQL> Allip addresses were replaced with 1.1.1.1.
SY.

Similar Messages

  • Equivalent of MS Access First Function in SQL for Group By

    We previously had an Access database performing operations. We are now converting it over to SQL. There are queries in Access that use the "First" function to insert data, which I have not been able to find the equivalent to in SQL. Below is an
    example showing the data used, the SQL syntax and the results that it would produce.
    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    If anyone could assist me in an alternative that I could use in SQL to yield the same results, I'd appreciate it.

    tbl_Data
    FirstN LastN CustNum TDate SalesPer
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/12/2014 Alan Brown
    Sally Jones 22222 5/10/2014 Ben Doers
    Jim Smith 11111 5/12/2014 Jim Johnson
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Results to be inserted into tbl_Main
    FName LName CustID TransDate SalesPerson
    Jim Smith 11111 5/10/2014 Jim Johnson
    Sally Jones 22222 5/10/2014 Ben Doers
    Frank Oliver 33333 5/15/2014 Jim Johnson
    Below is the SQL that will produce this
    INSERT INTO tbl_Main ( FName, LName, CustID, TransDate, SalesPerson)
    SELECT td.FirstN, td.LastN, td.CustNum, First(td.TDate) As SellDate, First(td.SalesPer) As SP
    FROM tbl_Data td
    GROUP BY td.FirstN, td.LastN, td.Cust;
    As an aside that query is not correct in Access -  because you did not specify an ORDER BY the resultset has no particular order so you could get either row for Jim or Sally.
    It's a bit of a tricky one as it may on the surface appear that the resultset is always returned in a consistent order but this is not guaranteed (not in Access and certainly not in SQL server)

  • Is there a logic:match equivalent for JSTL?

    In a search page I execute a query which returns an array of objects (All objects are of the same object type and are cast to Object[]) and each object has many attributes. I tried using <logic:iterate>, but I was never successful in having it display any results. I believe this had something to do with the entire array being passed via session scope instead of just one record and me not specifying it properly with <logic:iterate>. I was able to successfully use <c:forEach> and it worked right away. I stuck with using that because of its "just works" ability in addition to using a lot of other JSTL code. However, one of the attributes that is being printed out needs to be parsed and is of the form "Yxxx". <logic:match> covers this very nicely, but when I specify it in the below code it is not able to find my variable in any scope.
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match parameter='${myResults}' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>I have done several google searches, but I haven't found a JSTL equivalent for <logic:match>. If there is one could someone please tell me what it is? In addition, although <logic:match> is great I still need to print out a substring of that attribute. Could someone tell me how to do that? If this is not possible could someone please tell me if its possible to use <logic:iterate> with an array of objects like I was attempting to do initially so that I could use <logic:match> at least?
    Thanks to all of you for your time.

    Yes you can use the logic:iterate tag. I think you have to specify the type of the exposed variable though. I prefer the forEach loop.
    I think you are using the wrong attribute in the logic:match tag. You should be using the "name" attribute rather than "parameter"
    Parameter attribute refers you to a request parameter, and I pretty sure you don't want that.
    So given the collection of objects in the session attribute "result"
    This should loop through them all, and see if they start with the letter 'Y'
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
        <logic:match name='myResults' property='pin' value='Y'>
            <c:out value="Preeti"/>
        </logic:match>
    </c:forEach>As for the latter bit, are you using a JSP2 container and JSTL1.1? It would appear so seeing as you are trying to use EL expressions in the logic:match tag.
    If so, you could make use of the JSTL function library:
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
       <c:if test='${fn:startsWith(myResults.pin, "Y")}'>
          <c:out value="${fn:substring(myResults.pin, 1, -1)}"/>
        </c:if>
    </c:forEach>And I've just spotted a very cool function in there: substringAfter
    <c:forEach var="myResults" items="${sessionScope.result}" varStatus="status">
          <c:out value='${fn:substringAfter(myResults.pin, 'Y')}'/>
    </c:forEach>Cheers,
    evnafets

  • What is equivalent of JInternalFrame in JavaFX 2.0?

    what is equivalent of JInternalFrame in JavaFX 2.0?
    Actually I want to use pure javaFX 2.0 to view report created in iReport 5.0.0.
    I have used java.swing code, and now I want to use pure javaFX 2.0.
    My code in swing is as follows
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package reports;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.util.HashMap;
    import net.sf.jasperreports.engine.JRException;
    import net.sf.jasperreports.engine.JasperFillManager;
    import net.sf.jasperreports.engine.JasperPrint;
    import net.sf.jasperreports.view.JRViewer;
    * @author TANVIR AHMED
    public class ReportsViewer extends javax.swing.JInternalFrame {
    * Creates new form MyiReportViewer
    private ReportsViewer()
    super("Report Viewer",true,true,true,true);
    initComponents();
    setBounds(10,10,600,500);
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    public ReportsViewer(String fileName)
    this(fileName,null);
    public ReportsViewer(String fileName,HashMap parameter)
    this();
    try
    /* load the required JDBC driver and create the connection
    here JDBC Type Four Driver for MySQL is used*/
    //Class.forName("com.mysql.jdbc.Driver");
    Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "invoice", "item");
    //Connection con=DriverManager.getConnection("jdbc:mysql://localhost/inventory","root","karim");
    /*(Here the parameter file should be in .jasper extension
    i.e., the compiled report)*/
    JasperPrint print = JasperFillManager.fillReport(
    fileName, parameter, con);
    JRViewer viewer=new JRViewer(print);
    Container c=getContentPane();
    c.setLayout(new BorderLayout());
    c.add(viewer);
    catch(SQLException sqle)
    sqle.printStackTrace();
    catch(JRException jre)
    jre.printStackTrace();
    * This method is called from within the constructor to initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is always
    * regenerated by the Form Editor.
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 394, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 290, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    // Variables declaration - do not modify
    // End of variables declaration
    and
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package reports;
    import java.beans.PropertyVetoException;
    * @author TANVIR AHMED
    public class MainUI extends javax.swing.JFrame {
    * Creates new form MainUI
    public MainUI() {
    super("REPORTS");
    initComponents();
    setSize(java.awt.Toolkit.getDefaultToolkit().getScreenSize());
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {
    jMenuItem1 = new javax.swing.JMenuItem();
    desktopPane = new javax.swing.JDesktopPane();
    salesTaxInv = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    supplyRegister = new javax.swing.JButton();
    PartyLedger = new javax.swing.JButton();
    menuBar = new javax.swing.JMenuBar();
    jMenuItem1.setText("jMenuItem1");
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    desktopPane.setBackground(new java.awt.Color(255, 204, 0));
    desktopPane.setBorder(new javax.swing.border.MatteBorder(null));
    desktopPane.setForeground(new java.awt.Color(255, 0, 102));
    desktopPane.setAutoscrolls(true);
    desktopPane.setFont(new java.awt.Font("Bookman Old Style", 0, 14)); // NOI18N
    desktopPane.setPreferredSize(new java.awt.Dimension(1024, 768));
    salesTaxInv.setBackground(new java.awt.Color(255, 255, 255));
    salesTaxInv.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    salesTaxInv.setForeground(new java.awt.Color(204, 0, 0));
    salesTaxInv.setText("Sales Tax Invoice");
    salesTaxInv.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    salesTaxInvActionPerformed(evt);
    salesTaxInv.setBounds(20, 53, 200, 31);
    desktopPane.add(salesTaxInv, javax.swing.JLayeredPane.DEFAULT_LAYER);
    jLabel1.setFont(new java.awt.Font("Bookman Old Style", 0, 24)); // NOI18N
    jLabel1.setForeground(new java.awt.Color(50, 72, 255));
    jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
    jLabel1.setText("Invoice System Reports");
    jLabel1.setBounds(0, -1, 1024, 50);
    desktopPane.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER);
    supplyRegister.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    supplyRegister.setForeground(new java.awt.Color(204, 0, 0));
    supplyRegister.setText("Supply Register");
    supplyRegister.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    supplyRegisterActionPerformed(evt);
    supplyRegister.setBounds(20, 100, 200, 30);
    desktopPane.add(supplyRegister, javax.swing.JLayeredPane.DEFAULT_LAYER);
    PartyLedger.setFont(new java.awt.Font("Bookman Old Style", 1, 18)); // NOI18N
    PartyLedger.setForeground(new java.awt.Color(204, 0, 0));
    PartyLedger.setText("Party Ledger");
    PartyLedger.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    PartyLedgerActionPerformed(evt);
    PartyLedger.setBounds(20, 140, 200, 30);
    desktopPane.add(PartyLedger, javax.swing.JLayeredPane.DEFAULT_LAYER);
    setJMenuBar(menuBar);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(desktopPane, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addComponent(desktopPane, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    private void salesTaxInvActionPerformed(java.awt.event.ActionEvent evt) {                                           
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/INV.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    private void supplyRegisterActionPerformed(java.awt.event.ActionEvent evt) {                                              
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/supplyRegister.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    private void PartyLedgerActionPerformed(java.awt.event.ActionEvent evt) {                                           
    try
    ReportsViewer myiReportViewer = new ReportsViewer("reports/CustomerLedger.jasper");
    myiReportViewer.setBounds(0, 0, desktopPane.getWidth(), desktopPane.getHeight());
    myiReportViewer.setVisible(true);
    desktopPane.add(myiReportViewer);
    myiReportViewer.setSelected(true);
    catch (PropertyVetoException pve)
    pve.printStackTrace();
    * @param args the command line arguments
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new MainUI().setVisible(true);
    // Variables declaration - do not modify
    private javax.swing.JButton PartyLedger;
    private javax.swing.JDesktopPane desktopPane;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JButton salesTaxInv;
    private javax.swing.JButton supplyRegister;
    // End of variables declaration
    Best Regards

    Dear Sir,
    I am using the swing code and running the jasper report with the above code.
    Realy!
    I start the thread with this code
    @FXML
    private void mainUiButtonAction(ActionEvent event) {
    try{
    new MainUI().setVisible(true);
    catch(Exception ex){                 
    }

  • Is there an equivalent statement in Java for this PL/SQL stmt?

    Hi,
    I want to know if there is an equivalent statement
    in java for this PL/SQL statement:
    IF strTok IN('COM-1','COM-2','COM-3') Then
    /* Do Something */
    End If;
    I tried using : // This is giving me errors..
    if (strTok.equals(("COM-1") || ("COM-2") || ("COM-3") ) )
    /* Do Something */
    The above Java code is giving me errors.
    Any Help to reduce the number of steps for comparison
    is appreciated.
    thanks in adv
    Sharath

    Something like
    if (strTok.equals("COM-1") ||
        strTok.equals("COM-2") ||
        strTok.equals("COM-3") )Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Create a table in SQL with datatype equivalent to LongBlob

    I have a mySQL or phpMyadmin table (nor sure) (with longblob fields) that I want to convert to SQL Server.
    Here is a link to a Rar with two files, the 'ORIGINAL CODE.sql' is the original code sample and the 'NEW_SQL_CODE.sql' is the code I am writing in SQL to create a database.
    Click to download the two files.
    I fail to make the insert in the 'NEW_SQL_CODE.sql', it says (translated from spanish) something like "The binary data will be truncated"
    INSERT INTO inmuebles_fotos (ci_inm, pos, foto, mini, comentario, inet, impr_cartel, impr_visita) VALUES
    (6, 0, 0xffd8ffe000104a46494600010100000100010...etc...
    I don’t know how if I have defined the wrong data type (image) equivalent to the MySQL LongBlob. All I want to do is to make that insert in SQL and save that image as jpg if possible. I don't know if it's not posible in SQL and can only
    be done in MySQL.
    Thanks for any help.

    The original table is not mine; I am just trying to save the images as .jpg in hard drive.
    Here is the original table I have that has 500Mb in pictures, in the sample there is only 1 picture:
    CREATE TABLE IF NOT EXISTS `inmuebles_fotos` (
    `ci_inm` int(10) unsigned DEFAULT NULL,
    `pos` smallint(6) DEFAULT NULL,
    `foto` longblob,
    `mini` longblob,
    `comentario` varchar(100) DEFAULT NULL,
    `inet` tinyint(3) unsigned DEFAULT '0',
    `impr_cartel` smallint(6) DEFAULT '0',
    `impr_visita` smallint(6) DEFAULT '0'
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    And here is the equivalent table in SQL that I am trying to create to import al registers so I can save the pictures from SQL Server that is what we use here.
    CREATE TABLE [dbo].[inmuebles_fotos2](
    [ci_inm] [int] NULL,
    [pos] [int] NULL,
    [foto] [image] NULL,
    [mini] [image] NULL,
    [comentario] [varchar](1) NULL,
    [inet] [int] NULL,
    [impr_cartel] [int] NULL,
    [impr_visita] [int] NULL
    Sorry for the trouble, I am trying everything I get my hands on until I get to save those images in “0x1234567890ABCDE…….” Format.
    I'll try anything you sugest me but I have only use SQL Server so that's why I'm trying this road first.
    Thanks for your help.

  • Best app to give equivalent of microsoft office

    I use a PC with office and need to find the equivalent to use on MacBook which is the best please?

    How about?
    http://www.microsoft.com/MAC

  • MM03 equivalent DS for BW

    Hi, what is the equivalent DS in LBWE to capture MM03 data for sales org 2.  How do we make a report in BW for this requirement.  I need the DS for this.
    Thanks,
    Radha

    Hi,
    You can try to use datasource 0MAT_SALES_ATTR...
    If you would like to create queries based on characteristic values you should first create it as InfoProvider (in RSA1 go to InfoProvider and from menu choose something like "Create characteristic as...").
    Krzys

  • Not able to enable SSH user equivalency for RAC on RHEL 4

    Hi All,
    I am trying to install oracle RAC 11g on RHEL4 (on VMware), I am using below document for reference.
    http://www.oracle-base.com/articles/11g/OracleDB11gR1RACInstallationOnOEL5UsingVMware.php
    Every thing went fine till "SSH user equivalency", but I am not able to SSH and SCP between servers without entering passwords.
    I have tried removing .ssh folder & recreating pub file twice but it did not helped.
    am i missing something?
    Please advice.
    Thanks,
    Abhay.

    Configure SSH on each node in the cluster. Log in as the "oracle" user and perform the following tasks on each node.
    su - oracle
    mkdir ~/.ssh
    chmod 700 ~/.ssh
    /usr/bin/ssh-keygen -t rsa # Accept the default settings.
    The RSA public key is written to the ~/.ssh/id_rsa.pub file and the private key to the ~/.ssh/id_rsa file.
    Log in as the "*oracle*" user on RAC1, generate an "authorized_keys" file on RAC1 and copy it to RAC2 using the following commands.
    su - oracle
    cd ~/.ssh
    cat id_rsa.pub >> authorized_keys
    scp authorized_keys rac2:/home/oracle/.ssh/
    Next, log in as the "oracle" user on RAC2 and perform the following commands.
    su - oracle
    cd ~/.ssh
    cat id_rsa.pub >> authorized_keys
    scp authorized_keys rac1:/home/oracle/.ssh/
    The "authorized_keys" file on both servers now contains the public keys generated on all RAC nodes.
    To enable SSH user equivalency on the cluster member nodes issue the following commands on each node.
    ssh rac1 date
    ssh rac2 date
    ssh rac1.localdomain date
    ssh rac2.localdomain date
    exec /usr/bin/ssh-agent $SHELL
    /usr/bin/ssh-add
    You should now be able to SSH and SCP between servers without entering passwords.
    hope, this may helps you.
    enjoy.
    if you are unable to resolve it, please refer:-
    http://download.oracle.com/docs/cd/B28359_01/rac.111/b28252/preparing.htm#BGBBDHIB
    http://dsstos. blogspot.com/2009/03/linux-oracle-rac-and-bonding-conundrum.html

  • What is equivalent ASCP report for Planned Order&Order Reschedule Report

    What is equivalent report for Supply Chain Planned Order Report & Supply Chain Order Reschedule Report
    We are currently on MRP and running Supply Chain Planned Order Report successfully. We are planning to go to ASCP(Decentralized) next month ,what is the equivalent reports in ASCP?
    Edited by: SanDan on Jan 9, 2013 1:57 PM

    Hi ,
    You can explore the Planning Detail Report which you can run against your ascp plan. However there are few standard reports available in ascp. I suggest you can explore option of building custom report which will be best suited to your business needs (i.e. using Discoverer or if you are also implementing obiee you can build a custom report based on standard views or noitex views (- for ascp)
    Regards
    narendra

  • IPhone SDK - What is the equivalent of a combo box

    I have a screen where there are quite a few items which are of the multiple-choice type. In other platforms i use a combo box (pick lists) to do this.
    On the iPhone SDK the only thing that comes close is the UIPicketView which is ugly IMHO. it takes too much real estate and too heavy.
    Is this is the only control available now?
    Also does the UIPicker come with an associated control which will launch the picker? What i mean is on other platforms and on the web there is a text field with a button with a down arrow next to it. Clicking either on the text field or the down arrow drops the list down. Is there a similar control on the iPhone which when clicked launches the picker OR do i have to create a button or a custom view which will launch the picker?
    Thanks for reading this and for your feedback.
    -TRS

    I do not believe there is an equivalent of -D in the DB JVM, a possible solution is:
    Load a properties file into the DB using Loadjava, then open this file from your Java code using Properties.load(), then iterate the properties calling System.setProperty().
    Chris

  • How to use the same mask, stencil, etc., for multiple layers? Photoshop equivalent of masked group?

    Hi I spent more than half an hour to search manual, forums, and Internet and still can't find the answer. Please help!
    For example, in a comp with 5 or more layers I want to use the same mask or stencil or what ever can hide areas of the layers 2,3, and 4 but layer 5 and any other eventual layers below should not be affected.

    Pre-compose the layers you want to mask and apply a track matte to the pre-comp using the mask. Think of pre-composing as an equivalent of creating a layer group.
    Use Set Matte effect on each of the layers you want to mask. This is easiest to do if you apply set matte once and then create an animation preset to apply to the other layers. Just get set matte to do what you want it to do on the first layer, Select Set matte in the ECW or in the Timeline, then go to Animation>Save animation preset. Then select all of the other layers you want to apply the set matte to and apply the preset.
    Put the mask at the bottom of the layers you want to mask and enable the preserve transparency switch, then nest this group in the composition with the other layers.
    Here's another tip. You could define a custom color for all of the layers you want to use the matt on, then use the custom color for a group selection. This may make things easier down the line.

  • Is there a way to determine the equivalent ANSI C code from a Labview project?

    I'm a complete beginner to Labview.  I have this fairly complex Labview project that was used to create a DLL which matlab could call to control my PCI-6534 card without having to know the NIDAQmx calls.
    I'm in the process of figuring out how to make those NIDAQmx calls directly from Matlab but I'm not getting the same results as when I call this DLL mentioned above so I thought I'd try to make sense of the Labview project VIs.  I'm starting to make sense of the overall scheme of the VIs, but I'd like to be able to run the project, step through it, and perhaps see the NIDAQmx commands (or something equivalent so I can determine how to call the NIDAQmx commands within Matlab).
    Is this possible to do?
    Thanks,
    Jason
    Solved!
    Go to Solution.

    Yes. The toolbar allows you to turn on highlighting so you can run the VI and see the contents of wires. You can put probes on wires. You can single-step through code. All of this is explained in the LabVIEW Help under Fundamantals -> Running and DEbugging VIs -> Concepts -> Debugging Techniques.
    In regards to the implied question in the title of your post, no you cannot directly convert LabVIEW code to C in the development environment. Yes, there are tools to convert LabVIEW to C, but that's intended for microprocessors.

  • SQL Equivalent in Berkeley DB

    Hi,
    In SQL, we can create a table from the result of a select statement as follows:
    CREATE TABLE table3 AS SELECT * FROM table1, table2 WHERE ...
    which is called a "materialized view" because the results of the query are not processed on the fly, but are stored in database table for further processing.
    I would like to do something equivalent in Berkeley DB, where the I have some databases that already exist, and I want to perform some processing on them (joins, filters, etc), and instead of getting a cursor, I would like to store the result in a new database (table in SQL terminology). Is there a way to do so? I have Key/Data Java class definitions for the base tables only (table1 and table2 in the SQL example).
    Thanks,
    Walaa.

    I understand now, thanks. Now I realize that you're not generating bindings, you have fixed hand-coded bindings for the base table.
    The general question you're asking is: How can I store data in BDB without knowing the schema in advance?
    Since you are already using Java serialization, this is not too difficult. For the generated database, you could use a TupleSerial binding as you're already doing. This has two parts of course, the key and the data.
    I'm not sure what the key should be, perhaps a sequence number? It's up to you.
    Because you're using a a TupleSerial binding, the data can be any serialized object. For the serialized data, you could store a List or Map containing the fields that are defined at runtime by the query. A List<Object> may be appropriate if the fields are identified by their order, or a Map<String,Object> if the fields are identified by name. This should work fairly well as long as the List or Map data fields are primitives.
    Does this answer your question?
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Equivalent Objects in multiple libraries lead to duplicates in portal UI

    I am trying to avoid the duplicate listings of VHDs for a tenant portal user when they try to create a standalone VM.
    I have 3 libraries defined across three Hyper-V hosts. In order to avoid the long time to copy the parent VHD to the Hyper-V host for each VM creation, I have defined my VHDs as equivalent objects across the 3 libraries. This works well to avoid long copy times,
    but results in duplicate VHD listings in the WAP tenant portal. If I remove all but one of the 'equivalent' libraries from the Cloud definition, system center still knows about the equivalent relationship, but insists on doing the file copy anyway (I'm guessing
    because it thinks this cloud doesn't have access to the library).
    Any ideas?

    Referenced Libraries on iPhoto are a bug bear. Referenced Libraries on iPhoto where the library is on one volume and the original files on another are a disaster waiting to happen - or in your case, happening rght now. iPhoto 09 and earlier uses aliases to track the location of the actual file, and these break if you move the file after importing, when the file is on another volume.
    iPhoto has no tools to fix this problem.
    You're not going to be able to get this material into Aperture until you do.
    No point in hoping that iPhoto will magically provide the missing information, you're just going to have to make all the drives available to it. If it still can't find the images then you'll need to use an app like  FileBuddy to fix the aliases.
    iPhoto has no ability to export a spreadsheet with the data you require.

Maybe you are looking for

  • How to display only selected columns in the table on the tableview

    Hi All, I am displaying in the below tableview the data from the SFLIGHTS tables in the tableview using flow logic. It displays all the columns in the database table. How can I set in the code to display only selected columns and not all columns. Als

  • Picking the right quoattion and the value should show in PO

    Dear All, When comparing quotations the CST and VAT applicable Suppliers where VAT may be Cenvatable or Not and CST is not Cenvatable .After maintaining comparision in quotations it has to pick the right supplier quotation depending on which conditio

  • MDM IDOC Mapping: segments don't seem to be grouped properly

    Hi!  I'm been struggling with implementing MDM 5.5 SP3, where I have successfully extracted IDOCs (materials, vendors, customer) and have been using the mapping tool to map IDOC fields to MDM data structures. My issue is when I map the IDOC fields to

  • Connect more than 1 external BI in SEM-CPM-BSC or SEM-CPM-MC

    Hello, I have seen the help.sap.com that helps me how to put a defined BI (but only one BI). Design -> Default BW System Design -> Access to SAP BW Design -> RFC Destination for Project System But what we have is 3 BI systems. Each one with one modul

  • Reg: Currency conversion

    Hi Is there any FM to convert currency from any currency to USD..?