局域网内如何连接Oracle数据

需要知道数据库主机的IP地址,数据库端口号,服务名称,数据库账户及密码才可以连版接。

1、首先在权本地oracle的安装目录下找到找到tnsnames.ora文件。一般路径为:~oracleproct10.2.0db_1 etworkADMIN

4、用正确的账户名及密码登录,就可以连接成功。

㈡ 怎样连接局域网中的mysql数据库

1首先要确保内网应用正常。
2明确内网mysql数据库访问地址,并确保mysql数据库服务正常。如本地mysql数据库访问地址是localhost:3306。
3然后使用自己的帐号登录nat123。然后选择主面板/端口映射列表/添加映射。
4设置映射信息。选择全端口映射类型。填写内网mysql数据库服务器IP地址,和外网访问的域名。可以使用自己的域名,也可以使用免费二级域名。将鼠标放在输入框有向导提示。
5访问者打开mysql全端口映射后的域名和访问端口。如在添加访问地址时,同时勾选允许局域网访问,则在访问者局域网内都可以访问。
6查看访问者状态。鼠标放在访问者图标上,提示当前状态信息。
7在使用访问者本机,可以进行访问mysql数据库。访问地址是本地访问者打开的域名端口

㈢ 怎么用excel和access实现局域网数据库

您好,方法有很多的

例如

  1. 局域网中有Sharepoint服务端,可以直接通过Excel访问服务端上的数据库,

    如下图,但Sharepoint似乎并不是非常普及,所以还提供了其他方法



    注意:

    1.此方法的缺点在于仅限单向连接,即Excel端发生更改,Access端可同步接收Excel的数据变动,但在Access端无法对数据进行操作

    2.务必常常对Access进行存档,否则Excel端关闭后Access端可能发生数据丢失


    拓展:

    1. 另外还可以通过VB创建控件的方法,在IE中进行数据的浏览与更改,此方法将同时同步Excel与Access中的数据,但需要一定的VB编程基础,这里提供源码,有兴趣可以研究研究,并不是很难

      Imports System
      Imports System.Windows.Forms
      Imports Microsoft.Office.Excel.WebUI
      Imports Microsoft.SharePoint
      Imports Microsoft.SharePoint.WebPartPages

      Namespace AddEWATool
      ''' <summary>
      ''' Form1 class derived from System.Windows.Forms.
      ''' </summary>
      Partial Public Class Form1
      Inherits Form

      Private appName As String = "AddEWATool"
      Private specifyInputError As String = "Please add a site URL, for example, http://myserver/site/"
      Private openSiteError As String = "There was a problem with the site name. Please check that the site exists."
      Private addWebPartError As String = "There was a problem adding the Web Part."
      Private successMessage As String = "Web Part successfully added."

      ''' <summary>
      ''' Add the Excel Web Access Web Part to the Default.aspx page of the specified site.
      ''' </summary>
      ''' <param name="siteName">URL of the SharePoint site</param>
      ''' <param name="book">URI to the workbook</param>
      ''' <returns>Returns true if the WebPart was successfully added; otherwise, false.</returns>
      Public Function AddWebPart(ByVal siteName As String, ByVal book As String) As Boolean
      Dim site As SPSite = Nothing
      Dim targetWeb As SPWeb = Nothing
      Dim webPartManager As SPLimitedWebPartManager = Nothing

      Dim b As Boolean = False
      progressBar1.Visible = True
      progressBar1.Minimum = 1
      progressBar1.Maximum = 4
      progressBar1.Value = 1
      progressBar1.Step = 1

      If String.IsNullOrEmpty(siteName) Then
      MessageBox.Show(specifyInputError, appName, MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
      Return b
      End If

      Try
      Try
      site = New SPSite(siteName)
      targetWeb = site.OpenWeb()
      Catch exc As Exception
      MessageBox.Show(openSiteError & vbLf & exc.Message, appName, MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
      progressBar1.Value = 1
      Return b
      End Try

      progressBar1.PerformStep()

      Try
      ' Get the shared Web Part manager on the Default.aspx page.
      webPartManager = targetWeb.GetLimitedWebPartManager( _
      "Default.aspx", _
      System.Web.UI.WebControls.WebParts.PersonalizationScope.Shared)
      Catch exc As Exception
      MessageBox.Show(openSiteError & vbLf & exc.Message, appName, MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
      progressBar1.Value = 1
      Return b
      End Try

      progressBar1.PerformStep()

      'Instantiate Excel Web Access Web Part.
      'Add an Excel Web Access Web Part in a shared view.
      Dim ewaWebPart As New ExcelWebRenderer()
      ewaWebPart.WorkbookUri = book
      progressBar1.PerformStep()

      Try
      webPartManager.AddWebPart(ewaWebPart, "Left", 0)
      Catch exc As Exception
      MessageBox.Show(addWebPartError & vbLf & exc.Message, appName, MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
      progressBar1.Value = 1
      Return b
      End Try
      Finally
      If Not IsNothing(site) Then
      site.Dispose()
      End If

      If Not IsNothing(targetWeb) Then
      targetWeb.Dispose()
      End If

      If Not IsNothing(webPartManager) Then
      webPartManager.Dispose()
      End If
      End Try

      progressBar1.PerformStep()
      b = True
      Return b
      End Function

      ''' <summary>
      ''' AddEWAButton click handler.
      ''' </summary>
      ''' <param name="sender">caller</param>
      ''' <param name="e">event</param>
      Private Sub AddEWAButton_Click(ByVal sender As Object, ByVal e As EventArgs)
      Dim siteUrl As String = textBox1.Text
      Dim bookUri As String = textBox2.Text
      Dim succeeded As Boolean = AddWebPart(siteUrl, bookUri)
      If succeeded Then
      MessageBox.Show(successMessage, appName, MessageBoxButtons.OK, MessageBoxIcon.Information)
      progressBar1.Value = 1
      End If
      End Sub
      End Class
      End Namespace


    ㈣ 如何连接并使用局域网内另一台电脑的sql数据库。

    工具/材料:Management Studio。

    1、首先在桌面上,点击“Management Studio”图标。

    ㈤ 局域网内怎么连接到另外一台电脑的数据库

    前提是都有数据库管理系统,其中一个作为客户端,另一个为服务器,服务器上要为这个客户端授权一个帐号,比如mysql在命令行下:
    mysql -h 192.168.0.9 -u myaccount -p
    回车以后提示输入密码,输入正确就会连接上了,出现:
    mysql>