将导出/导入从SQL Server迁移到oracle的最佳方法(Best way to migrate export/import from SQL Server to oracle)
我面临着需要访问以报告Oracle中的一些数据以及SQL Server 2000数据库中的其他数据的情况。 由于各种原因,这些原因存在于防火墙的不同侧面。 现在我们正在寻找从sql server到oracle的导出/导入,我想了解最佳方法的一些建议...该过程需要完全自动化并且每晚运行,因此不包括使用SQL开发人员工具。 我也无法在我们的(oracle)端的数据库之间建立实时链接,因为防火墙阻碍了。 需要在流程中将数据从星型模式转换为准备报告的非规范化表。
我正在考虑的是为SQL Server编写一个怪物查询(我大部分都已经这样做)将使用sqlplus等效的sql server作为计划任务,将SQL Server中的数据反规范并读出到平面文件中,转储到一个熟知的位置,然后在oracle端有一个cron作业,复制文件并使用sql loader加载它并重建索引等。
这都是可行的,但非常手动。 是否有一个或组合的FOSS或标准的oracle / SQL Server工具可以为我自动化这个? 不可简化的复杂性是一方面的查询和另一方面构建索引,但我希望不必编写CSV转储详细信息或SQL加载程序脚本,只需将此视图转储为CSV一侧,并且其他截断并从CSV插入此表而不用担心映射列名和所有其他神秘的sqlldr voodoo ...
最佳做法? 想法? 注释?
编辑:我的数据集中有大约50多个不同类型和长度的列,这就是为什么我不想写出如何生成和映射每个列...
I'm faced with needing access for reporting to some data that lives in Oracle and other data that lives in a SQL Server 2000 database. For various reasons these live on different sides of a firewall. Now we're looking at doing an export/import from sql server to oracle and I'd like some advice on the best way to go about it... The procedure will need to be fully automated and run nightly, so that excludes using the SQL developer tools. I also can't make a live link between databases from our (oracle) side as the firewall is in the way. The data needs to be transformed in the process from a star schema to a de-normalised table ready for reporting.
What I'm thinking about is writing a monster query for SQL Server (which I mostly have already) that will denormalise and read out the data from SQL Server into a flat file using the sql server equivalent of sqlplus as a scheduled task, dump into a Well Known Location, then on the oracle side have a cron job that copies down the file and loads it with sql loader and rebuilds indexes etc.
This is all doable, but very manual. Is there one or a combination of FOSS or standard oracle/SQL Server tools that could automate this for me? the Irreducible complexity is the query on one side and building indexes on the other, but I would love to not have to write the CSV dumping detail or the SQL loader script, just say dump this view out to CSV on one side, and on the other truncate and insert into this table from CSV and not worry about mapping column names and all other arcane sqlldr voodoo...
best practices? thoughts? comments?
edit: I have about 50+ columns all of varying types and lengths in my dataset, which is why I'd prefer to not have to write out how to generate and map each single column...
原文:https://stackoverflow.com/questions/2743525
最满意答案
好的 - 这个例子就是我想要的,它有效。
#!/usr/bin/python import gtk class PyApp(gtk.Window): def __init__(self): super(PyApp, self).__init__() self.set_title("Calculator") self.set_size_request(250, 230) self.set_position(gtk.WIN_POS_CENTER) vbox = gtk.VBox(False, 2) table = gtk.Table(5, 4, True) table.attach(gtk.Button("Cls"), 0, 1, 0, 1) table.attach(gtk.Button("Bck"), 1, 2, 0, 1) table.attach(gtk.Label(), 2, 3, 0, 1) table.attach(gtk.Button("Close"), 3, 4, 0, 1) table.attach(gtk.Button("7"), 0, 1, 1, 2) table.attach(gtk.Button("8"), 1, 2, 1, 2) table.attach(gtk.Button("9"), 2, 3, 1, 2) table.attach(gtk.Button("/"), 3, 4, 1, 2) table.attach(gtk.Button("4"), 0, 1, 2, 3) table.attach(gtk.Button("5"), 1, 2, 2, 3) table.attach(gtk.Button("6"), 2, 3, 2, 3) table.attach(gtk.Button("*"), 3, 4, 2, 3) table.attach(gtk.Button("1"), 0, 1, 3, 4) table.attach(gtk.Button("2"), 1, 2, 3, 4) table.attach(gtk.Button("3"), 2, 3, 3, 4) table.attach(gtk.Button("-"), 3, 4, 3, 4) table.attach(gtk.Button("0"), 0, 1, 4, 5) table.attach(gtk.Button("."), 1, 2, 4, 5) table.attach(gtk.Button("="), 2, 3, 4, 5) table.attach(gtk.Button("+"), 3, 4, 4, 5) #vbox.pack_start(gtk.Entry(), False, False, 0) vbox.pack_end(table, True, True, 0) self.add(vbox) self.connect("destroy", gtk.main_quit) self.show_all() PyApp() gtk.main()
OK - this example is what i was looking for, it works.
#!/usr/bin/python import gtk class PyApp(gtk.Window): def __init__(self): super(PyApp, self).__init__() self.set_title("Calculator") self.set_size_request(250, 230) self.set_position(gtk.WIN_POS_CENTER) vbox = gtk.VBox(False, 2) table = gtk.Table(5, 4, True) table.attach(gtk.Button("Cls"), 0, 1, 0, 1) table.attach(gtk.Button("Bck"), 1, 2, 0, 1) table.attach(gtk.Label(), 2, 3, 0, 1) table.attach(gtk.Button("Close"), 3, 4, 0, 1) table.attach(gtk.Button("7"), 0, 1, 1, 2) table.attach(gtk.Button("8"), 1, 2, 1, 2) table.attach(gtk.Button("9"), 2, 3, 1, 2) table.attach(gtk.Button("/"), 3, 4, 1, 2) table.attach(gtk.Button("4"), 0, 1, 2, 3) table.attach(gtk.Button("5"), 1, 2, 2, 3) table.attach(gtk.Button("6"), 2, 3, 2, 3) table.attach(gtk.Button("*"), 3, 4, 2, 3) table.attach(gtk.Button("1"), 0, 1, 3, 4) table.attach(gtk.Button("2"), 1, 2, 3, 4) table.attach(gtk.Button("3"), 2, 3, 3, 4) table.attach(gtk.Button("-"), 3, 4, 3, 4) table.attach(gtk.Button("0"), 0, 1, 4, 5) table.attach(gtk.Button("."), 1, 2, 4, 5) table.attach(gtk.Button("="), 2, 3, 4, 5) table.attach(gtk.Button("+"), 3, 4, 4, 5) #vbox.pack_start(gtk.Entry(), False, False, 0) vbox.pack_end(table, True, True, 0) self.add(vbox) self.connect("destroy", gtk.main_quit) self.show_all() PyApp() gtk.main()
相关问答
更多-
将水平对齐按钮限制为5个按钮,然后开始新行(Limit horizontally aligned buttons to 5 buttons then start new row)[2023-01-21]
说明 这很容易! 看,你没有提供你的代码,我不能说你面临的具体困难是什么,你如何制作新的按钮!? 我不知道。 您可以添加在后台运行的文本框。 每次创建一个新按钮时添加一个数字。 然后使用MOD运算符完成您的工作。 代码和示例 Private Sub Form1_Load () Handles Form1.Load Textbox1.Visible = False 'Or you can write here Textbox1.Hide End Sub Private Sub Ad ... -
你的问题中没有足够的代码来说明发生了什么。 我的猜测是第3排的重量比其他排的重量大。 但是,我建议对如何创建GUI进行两处修改,而不是追逐错误。 首先,不要试图将所有内容都放在一个网格中,而是将GUI分成两半。 一半有画布而没有别的,另一半有一堆按钮。 对我来说,自然组织首先要创建一个包含按钮的框架。 然后,使用pack将画布放在左侧,将框架放在右侧。 一旦完成了这项工作,您就可以组织按钮,而无需担心按钮网格和画布之间的交互。 其次,将所有调用放在grid ,这样您就可以更轻松地一次性显示所有内容。 它看起 ...
-
第1步: res / drawable / button_selector.xml
Python - 如何使每行对齐的所有按钮看起来像按钮墙(Python - how to make all the buttons aligned per row to look like button wall)[2023-12-12]
好的 - 这个例子就是我想要的,它有效。 #!/usr/bin/python import gtk class PyApp(gtk.Window): def __init__(self): super(PyApp, self).__init__() self.set_title("Calculator") self.set_size_request(250, 230) self.set_position(gtk.WIN_POS_C ...删除btn-toolbar类,好像它在第一个元素之前添加了一个空格,因此不适用于包装 您可能需要单独为每个按钮添加底部和右侧边距 Remove the btn-toolbar class, seems like it adds a space before the first element, so not designed to work for wrapping You may need to add a bottom and right margin to each button individual ...如何让我的文本框和按钮对齐,看起来像图片?(How do I get my textboxes and buttons aligned which look like the picture?)[2023-10-16]
反对我更好的判断,我继续做了你的功课:) 我想给你看一个使用flexbox的选项 这里是一个很好的资源 $(document).ready(function() { console.log('doc is ready'); $("form").on("submit", function(event) { event.preventDefault(); console.log($(this).serialize()); }); }) body { font ...使复选框看起来像按钮(Make checkbox look like button)[2024-03-28]
是的,绝对可以用纯CSS做你想做的事。 我想你应该查看这个问题上提到的jsFiddle。 Yes, it is definitely possible to do what you want with pure CSS. I think you should check out the jsFiddle mentioned on this question.我试图尽可能多地重用你的代码,但你可能想要解决几个大项目 - 你使用的是针对x而不是y计算的button_size - 这将产生方形按钮,你永远不会使用任何类型文本或按钮文件的描述。 这就是说这段代码应该产生你想要的结果: def Button_Build(gamesnum): # 'gamesnum' is the amount of detected files Screensize = 200 #size of given screen space button_size = Scre ...自动对齐按钮(automatic alignment of buttons)[2022-08-08]
而不是网格,将按钮放在StackPanel中,Orientation =“Horizontal”。 此外,请确保将按钮可见性设置为“折叠”而不是“隐藏”。 Instead of a grid, put the buttons in a StackPanel with Orientation="Horizontal". Also, make sure you set your button Visibility to "Collapsed" instead of "Hidden".您可以使用ion-row和ion-col元素。 请看看这个工作的plunker 。Sexe Homme 相关文章
更多- SQL Server 压力测试
- oracle 的SQL语句问题
- oracle
- Oracle的存储过程中如何调用sql loader?
- 请教一个SQL实现
- oracle 中,下面哪个SQL效率比较高?
- Hadoop+SQL Server+Excel=大数据分析
- SSDB 导入和导出
- 在oracle9i中如何编写sql或者存储过程来知道执行sql或者函数花费的时间?
- 解决linux下Oracle SQL Developer界面中文乱码问题
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)