<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: database view in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297962#M501935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kan,&lt;/P&gt;&lt;P&gt;A synonym is a DB object which can reference to a table, view, package..., regardless whether it belongs to the same schema or to a different one, and regardless whether it belongs to the same database or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, suppose you are working in SAP R/3 with Oracle. Then the main schema may have the name "SAPR3". Well, it may not be a nice procedure, but you may have more schemas into the same SAP R/3 machine (for test purposes, for example). Let's suppose there is another schema, say TESTSAP, with DB tables that are NOT created via SAP R/3. Well, you can create a public synonym, so that these tables are accesible from the whole machine. For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE PUBLIC SYNONYM my_remote_table
FOR testsap.my_table
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So every time you access "my_remote_table" (for instance, in a SELECT statement), it will automatically be redirected to the table "my_table" in schema "TESTSAP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another utility is to link several databases in several machines. This can be achieved via &amp;lt;b&amp;gt;db-links&amp;lt;/b&amp;gt;. You may also create synonyms for that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE PUBLIC SYNONYM my_remote_table
FOR admin_1.salaries@another_db
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So every time you access "my_remote_table", it will be redirected to the table "salaries" of schema "admin_1" into database "another_db", which can be another database different fom SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 08:08:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-23T08:08:45Z</dc:date>
    <item>
      <title>database view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297959#M501932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I havw one doubt about views,synonyms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.what is synonym?&lt;/P&gt;&lt;P&gt;2.for checking whether database view exists or not one function module is there &lt;/P&gt;&lt;P&gt;    that is "db_exists_view."&lt;/P&gt;&lt;P&gt;but for checking synonym is there any other function module is there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 07:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297959#M501932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T07:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: database view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297960#M501933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.A synonym is another name for a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every synonym has a name that is unique within the entire database system and differs from all the other table names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.The Function Module For Checking whether the Synonym(Table) is exist or not is &amp;lt;b&amp;gt;DB_EXISTS_TABLE&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 08:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297960#M501933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: database view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297961#M501934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;synonym is an alias for tables/views/program unit.&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapdb.org/7.4/htmhelp/48/8af5a1a54f11d2a97100a0c9449261/content.htm" target="test_blank"&gt;http://sapdb.org/7.4/htmhelp/48/8af5a1a54f11d2a97100a0c9449261/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 08:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297961#M501934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T08:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: database view</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297962#M501935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kan,&lt;/P&gt;&lt;P&gt;A synonym is a DB object which can reference to a table, view, package..., regardless whether it belongs to the same schema or to a different one, and regardless whether it belongs to the same database or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, suppose you are working in SAP R/3 with Oracle. Then the main schema may have the name "SAPR3". Well, it may not be a nice procedure, but you may have more schemas into the same SAP R/3 machine (for test purposes, for example). Let's suppose there is another schema, say TESTSAP, with DB tables that are NOT created via SAP R/3. Well, you can create a public synonym, so that these tables are accesible from the whole machine. For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE PUBLIC SYNONYM my_remote_table
FOR testsap.my_table
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So every time you access "my_remote_table" (for instance, in a SELECT statement), it will automatically be redirected to the table "my_table" in schema "TESTSAP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another utility is to link several databases in several machines. This can be achieved via &amp;lt;b&amp;gt;db-links&amp;lt;/b&amp;gt;. You may also create synonyms for that:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CREATE PUBLIC SYNONYM my_remote_table
FOR admin_1.salaries@another_db
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So every time you access "my_remote_table", it will be redirected to the table "salaries" of schema "admin_1" into database "another_db", which can be another database different fom SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 08:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/database-view/m-p/2297962#M501935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T08:08:45Z</dc:date>
    </item>
  </channel>
</rss>

